Reformat part of google test integration cmake file

This commit is contained in:
BostonVaulter 2011-02-15 07:44:21 +00:00
parent b46d872a5e
commit 6b634d8378
1 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,11 @@ ELSE(UNIX)
ENDIF(UNIX)
# Include all files that have unit tests
SET(inc_dirs_tests
${root_dir}/lib/synergy/CProtocolUtilTest.cpp
)
SET(inc_dirs_test
${root_dir}
${root_dir}/lib
@ -84,8 +89,5 @@ SET(inc_dirs_test
)
INCLUDE_DIRECTORIES(${inc_dirs_test})
#ADD_EXECUTABLE(tests ${root_dir}/third_party/gtest/src/gtest-all.cc)
#ADD_EXECUTABLE(tests ${root_dir}/lib/synergy/CProtocolUtilTest.cpp)
#ADD_LIBRARY(prototest STATIC ${src_cmd_synergyc_common})
ADD_EXECUTABLE(tests ${root_dir}/third_party/gtest/src/gtest_main.cc ${root_dir}/lib/synergy/CProtocolUtilTest.cpp)
ADD_EXECUTABLE(tests ${root_dir}/third_party/gtest/src/gtest_main.cc ${inc_dirs_tests})
TARGET_LINK_LIBRARIES(tests synergy gtest ${libs})