cmake-cmocka-template/tests/simple_test/CMakeLists.txt

8 lines
325 B
CMake
Raw Normal View History

2024-02-23 07:15:42 +00:00
# Test the logic for the PMG formating code
add_cmocka_test(test_pgm
SOURCES test_pgm.c
COMPILE_OPTIONS ${DEFAULT_C_COMPILE_FLAGS}
LINK_LIBRARIES "${CMOCKA_LIBRARIES}")
add_cmocka_test_environment(test_pgm)
target_include_directories(test_pgm PUBLIC "${CMOCKA_INCLUDE_DIRS}")