2024-02-23 07:15:42 +00:00
|
|
|
# The wrap module tests
|
|
|
|
list(APPEND TEST_LIBS "${CMOCKA_LIBRARIES}")
|
|
|
|
list(APPEND TEST_LIBS wrap)
|
|
|
|
|
|
|
|
list(APPEND TEST_DIRS "${CMOCKA_INCLUDE_DIRS}")
|
2024-03-08 18:30:49 +00:00
|
|
|
list(APPEND TEST_DIRS "${PROJECT_SOURCE_DIR}/src/wrap")
|
2024-02-23 07:15:42 +00:00
|
|
|
|
|
|
|
add_cmocka_test(test_wrap
|
|
|
|
SOURCES test_wrap.c
|
|
|
|
COMPILE_OPTIONS ${DEFAULT_C_COMPILE_FLAGS}
|
|
|
|
LINK_LIBRARIES "${TEST_LIBS}")
|
|
|
|
add_cmocka_test_environment(test_wrap)
|
|
|
|
target_include_directories(test_wrap PUBLIC "${TEST_DIRS}")
|