Skip to content

Commit

Permalink
cmake BUGFIX missing cmocka lib usage
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed May 20, 2024
1 parent ea7bc89 commit 93d7503
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ int np2_${TEST}(int argc, char *argv[]);")
add_library(netopeer2_lib_test OBJECT "${TEST_SRC_DIR}/${TEST_SRC}")
include_directories(${TEST_BIN_DIR})
include_directories(${TEST_SRC_DIR})

# cmocka
include_directories(SYSTEM ${CMOCKA_INCLUDE_DIR})
target_link_libraries(netopeer2_lib_test ${CMOCKA_LIBRARIES})
endif()

configure_file(${PROJECT_SOURCE_DIR}/netopeer2.h.in ${PROJECT_BINARY_DIR}/include/netopeer2.h ESCAPE_QUOTES @ONLY)
Expand Down

0 comments on commit 93d7503

Please sign in to comment.