File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,24 @@ project(tests_debug)
3
3
# set(CMAKE_BUILD_TYPE Release)
4
4
set (CMAKE_BUILD_TYPE Debug)
5
5
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
6
- set (PATH "../../../src/test /" )
6
+ set (PATH "./" )
7
7
set (SOURCES
8
8
${PATH} main.cpp
9
9
${PATH} json_pointer_test.h
10
10
${PATH} unit_test.h)
11
11
12
12
find_library (GTEST_LIB gtest)
13
+ find_library (GTEST_MAIN_LIB gtest_main)
13
14
find_library (JSON_LIB json)
14
15
find_library (JSON_POINTER_LIB json_pointer)
16
+ find_library (PTHREAD_LIB pthread)
15
17
16
18
message (${GTEST_LIB} )
19
+ message (${GTEST_MAIN_LIB} )
17
20
message (${JSON_LIB} )
18
21
message (${JSON_POINTER_LIB} )
22
+ message (${PTHREAD_LIB} )
19
23
20
24
add_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} )
22
26
target_include_directories (tests_debug PUBLIC "/usr/local/include" )
You can’t perform that action at this time.
0 commit comments