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);")
8888int np2_${TEST} (int argc, char *argv[]);" )
8989 endforeach ()
9090
91- add_library (netopeer2_lib_test OBJECT " ${TEST_SRC_DIR} / ${ TEST_SRC}" )
91+ add_library (netopeer2_lib_test OBJECT ${ TEST_SRC} )
9292 target_compile_definitions (netopeer2_lib_test PRIVATE NETOPEER2_LIB)
9393
9494 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})
3737include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
3838include_directories (${CMAKE_CURRENT_BINARY_DIR} )
3939
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" )
4242
4343# list of all the tests
4444set (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