diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bc86a7..e629ec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,14 @@ find_package(Lua51 REQUIRED) include_directories(${LUA_INCLUDE_DIR}) # build and link the library -add_library(honeysuckle src/honeysuckle.c) +set(HS_ROOT ${CMAKE_SOURCE_DIR}/src) +set(HONEYSUCKLE_SOURCES + ${HS_ROOT}/hs_type_to_string.c + ${HS_ROOT}/hs_pushstring.c + ${HS_ROOT}/hs_throw_error.c + ${HS_ROOT}/honeysuckle.c + ) +add_library(honeysuckle ${HONEYSUCKLE_SOURCES}) set_target_properties(honeysuckle PROPERTIES CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic") target_link_libraries(honeysuckle ${LUA_LIBRARIES}) set_target_properties(honeysuckle PROPERTIES @@ -20,10 +27,9 @@ 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_parse_overloaded_tests.c + # ${TEST_ROOT}/hs_create_table_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 |