diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e02378..0e3eda3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,23 @@ set_target_properties(honeysuckle PROPERTIES PUBLIC_HEADER src/honeysuckle.h) # optionally build the tests -add_executable(test EXCLUDE_FROM_ALL src/test.c) +set(TEST_ROOT ${CMAKE_SOURCE_DIR}/src/tests) +set(TEST_SOURCES + ${TEST_ROOT}/tests_main.c + ${TEST_ROOT}/hs_type_to_string_tests.c + ${TEST_ROOT}/hs_parse_args_tests.c + ${TEST_ROOT}/hs_parse_overloaded_tests.c + ${TEST_ROOT}/hs_create_table_tests.c + # ${TEST_ROOT}/hs_create_enum_tests.c + # ${TEST_ROOT}/hs_process_table_tests.c + # ${TEST_ROOT}/hs_throw_error_tests.c + # ${TEST_ROOT}/hs_traceback_tests.c + # ${TEST_ROOT}/hs_call_tests.c + # ${TEST_ROOT}/hs_call_args_tests.c + ${TEST_ROOT}/hs_pushstring_tests.c + # ${TEST_ROOT}/hs_rxx_tests.c + ) +add_executable(test EXCLUDE_FROM_ALL ${TEST_SOURCES}) target_link_libraries(test ${LUA_LIBRARIES} honeysuckle) include(GNUInstallDirs) |