diff options
| author | sanine <sanine.not@pm.me> | 2021-09-23 22:06:41 -0500 |
|---|---|---|
| committer | sanine <sanine.not@pm.me> | 2021-09-23 22:06:41 -0500 |
| commit | 6f92e9da2f6b0223c34728da34be65d76d5db485 (patch) | |
| tree | 932760a75acd33dfe4e303e1c46fd8bdd153501f /CMakeLists.txt | |
| parent | 34603bb6d538ab1b0edbe10feeef27b80b1b7f7a (diff) | |
add basic test framework
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) |
