File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ int np2_server_test_stop(void);")
88
88
int np2_${TEST} (int argc, char *argv[]);" )
89
89
endforeach ()
90
90
91
- add_library (netopeer2_lib_test OBJECT " ${TEST_SRC_DIR} / ${ TEST_SRC}" )
91
+ add_library (netopeer2_lib_test OBJECT ${ TEST_SRC} )
92
92
target_compile_definitions (netopeer2_lib_test PRIVATE NETOPEER2_LIB )
93
93
94
94
include_directories (${TEST_BIN_DIR} )
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ include_directories(SYSTEM ${CMOCKA_INCLUDE_DIR})
37
37
include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
38
38
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
39
39
40
- # base test source
41
- set (TEST_SRC "np2_test.c" "np2_other_client.c" )
40
+ # base test source (absolute path, used by the lib as well)
41
+ set (TEST_SRC "${CMAKE_CURRENT_SOURCE_DIR} / np2_test.c" "${CMAKE_CURRENT_SOURCE_DIR} / np2_other_client.c" )
42
42
43
43
# list of all the tests
44
44
set (TESTS test_rpc test_edit test_filter test_subscribe_filter test_subscribe_param test_parallel_sessions
You can’t perform that action at this time.
0 commit comments