From f4059035ee640acd39e3ba6ec5c00f3bd8062687 Mon Sep 17 00:00:00 2001 From: jlangr Date: Fri, 10 May 2013 08:52:20 -0600 Subject: [PATCH] 1 --- .gitignore | 4 ++++ CMakeLists.txt | 16 ++++++++++++++++ ExpectToFailCompile | 1 + README | 1 + SoundexTest.cpp | 6 ++++++ main.cpp | 7 +++++++ 6 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 ExpectToFailCompile create mode 100644 README create mode 100644 SoundexTest.cpp create mode 100755 main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..32c947c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.o +main +*.swp +build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4cc738d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +project(chapterFirstExample) +cmake_minimum_required(VERSION 2.6) + +include_directories($ENV{GMOCK_HOME}/include $ENV{GMOCK_HOME}/gtest/include) +link_directories($ENV{GMOCK_HOME}/mybuild $ENV{GMOCK_HOME}/gtest/mybuild) +add_definitions(-std=c++0x) +set(CMAKE_CXX_FLAGS "${CMAXE_CXX_FLAGS} -Wall") + +set(sources + main.cpp + SoundexTest.cpp) +add_executable(test ${sources}) +target_link_libraries(test pthread) +target_link_libraries(test gmock) +target_link_libraries(test gtest) + diff --git a/ExpectToFailCompile b/ExpectToFailCompile new file mode 100644 index 0000000..80d4c17 --- /dev/null +++ b/ExpectToFailCompile @@ -0,0 +1 @@ +this branch is expected to fail compilation diff --git a/README b/README new file mode 100644 index 0000000..2997ab6 --- /dev/null +++ b/README @@ -0,0 +1 @@ +the master branch is not used on this project diff --git a/SoundexTest.cpp b/SoundexTest.cpp new file mode 100644 index 0000000..f44975c --- /dev/null +++ b/SoundexTest.cpp @@ -0,0 +1,6 @@ +#include "gmock/gmock.h" //