summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-15 22:00:24 -0400
committerpommicket <pommicket@gmail.com>2025-09-15 22:00:24 -0400
commit2fc802b267092ad647672bcbfcd31f0117eec27c (patch)
tree9b45ae643adfba9e23e761599d5d8240f6ed3180 /CMakeLists.txt
parentb93385c0fded8d6c232267a8bd9293153baea777 (diff)
Switch back to `pom_error` for typed get functions
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc4eb26..5a24f75 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,9 +11,13 @@ endif()
add_library(pom STATIC pom.c)
add_library(pom-shared SHARED pom.c)
set_target_properties(pom-shared PROPERTIES OUTPUT_NAME pom)
+
+# Tests
add_executable(tests tests/errors.c tests/location.c tests/parsing.c tests/interpretation.c tests/main.c)
target_include_directories(tests PRIVATE .)
target_link_libraries(tests pom)
+
+# Examples
add_executable(example_read_conf examples/read_conf.c)
target_include_directories(example_read_conf PRIVATE .)
target_link_libraries(example_read_conf pom)
@@ -24,6 +28,6 @@ add_executable(example_all_functions examples/all_functions.c)
target_include_directories(example_all_functions PRIVATE .)
target_link_libraries(example_all_functions pom)
+# Installation
install(TARGETS pom pom-shared DESTINATION lib)
-install(FILES pom.pc DESTINATION lib)
install(FILES pom.h DESTINATION include)