Skip to content

Commit

Permalink
build BUGFIX test src used by the lib
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Sep 5, 2024
1 parent 0822e99 commit a8e49c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ int np2_server_test_stop(void);")
int np2_${TEST}(int argc, char *argv[]);")
endforeach()

add_library(netopeer2_lib_test OBJECT "${TEST_SRC_DIR}/${TEST_SRC}")
add_library(netopeer2_lib_test OBJECT ${TEST_SRC})
target_compile_definitions(netopeer2_lib_test PRIVATE NETOPEER2_LIB)

include_directories(${TEST_BIN_DIR})
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ include_directories(SYSTEM ${CMOCKA_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

# base test source
set(TEST_SRC "np2_test.c" "np2_other_client.c")
# base test source (absolute path, used by the lib as well)
set(TEST_SRC "${CMAKE_CURRENT_SOURCE_DIR}/np2_test.c" "${CMAKE_CURRENT_SOURCE_DIR}/np2_other_client.c")

# list of all the tests
set(TESTS test_rpc test_edit test_filter test_subscribe_filter test_subscribe_param test_parallel_sessions
Expand Down

0 comments on commit a8e49c7

Please sign in to comment.