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" //