summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-08-21 23:06:27 -0500
committersanine <sanine.not@pm.me>2021-08-21 23:06:27 -0500
commitcd4a04ee73e50056f3d04e9f13b490dbf5ed800a (patch)
treec3f758f6b9eb1a052faec9976535d605249f41b8 /CMakeLists.txt
parent9899cea5784437667128e6335e4359dd47bc5d63 (diff)
begin refactoring tests to reflect struct-based API and implement hs_pushstring()
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
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