diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b11d68..2934ec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,3 +40,15 @@ endif() target_link_libraries(honey ${LIBRARIES}) +# build tests (optional) + +set(TEST_ROOT ${CMAKE_SOURCE_DIR}/src/test) +set(TEST_SOURCES + ${TEST_ROOT}/test_main.c + ${TEST_ROOT}/logging/logging_tests.c + ) +add_executable(test EXCLUDE_FROM_ALL ${TEST_SOURCES}) +set_target_properties(test PROPERTIES + C_STANDARD 99 + CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic") +target_link_libraries(test ${LUA_LIBRARIES} honeysuckle) |