File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,24 @@ project(tests_debug)
33# set(CMAKE_BUILD_TYPE Release)
44set (CMAKE_BUILD_TYPE Debug)
55set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
6- set (PATH "../../../src/test /" )
6+ set (PATH "./" )
77set (SOURCES
88 ${PATH} main.cpp
99 ${PATH} json_pointer_test.h
1010 ${PATH} unit_test.h)
1111
1212find_library (GTEST_LIB gtest)
13+ find_library (GTEST_MAIN_LIB gtest_main)
1314find_library (JSON_LIB json)
1415find_library (JSON_POINTER_LIB json_pointer)
16+ find_library (PTHREAD_LIB pthread)
1517
1618message (${GTEST_LIB} )
19+ message (${GTEST_MAIN_LIB} )
1720message (${JSON_LIB} )
1821message (${JSON_POINTER_LIB} )
22+ message (${PTHREAD_LIB} )
1923
2024add_executable (tests_debug ${SOURCES} )
21- target_link_libraries (tests_debug ${GTEST_LIB} ${JSON_LIB} ${JSON_POINTER_LIB} )
25+ target_link_libraries (tests_debug ${GTEST_LIB} ${GTEST_MAIN_LIB} ${PTHREAD_LIB} ${ JSON_LIB} ${JSON_POINTER_LIB} )
2226target_include_directories (tests_debug PUBLIC "/usr/local/include" )
You can’t perform that action at this time.
0 commit comments