aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.ucl/CMakeLists.txt')
-rw-r--r--nihil.ucl/CMakeLists.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/nihil.ucl/CMakeLists.txt b/nihil.ucl/CMakeLists.txt
index 59021aa..f01fb25 100644
--- a/nihil.ucl/CMakeLists.txt
+++ b/nihil.ucl/CMakeLists.txt
@@ -3,11 +3,28 @@
pkg_check_modules(LIBUCL REQUIRED libucl)
add_library(nihil.ucl STATIC)
+target_link_libraries(nihil.ucl PUBLIC nihil)
target_sources(nihil.ucl PUBLIC
FILE_SET modules TYPE CXX_MODULES FILES
- nihil.ucl.ccm)
+ nihil.ucl.ccm
+ emit.ccm
+ error.ccm
+ object.ccm
+ parser.ccm
+
+ array.ccm
+ boolean.ccm
+ integer.ccm
+ real.ccm
+ string.ccm
+)
+
target_compile_options(nihil.ucl PUBLIC ${LIBUCL_CFLAGS_OTHER})
target_include_directories(nihil.ucl PUBLIC ${LIBUCL_INCLUDE_DIRS})
target_link_libraries(nihil.ucl PUBLIC ${LIBUCL_LIBRARIES})
target_link_directories(nihil.ucl PUBLIC ${LIBUCL_LIBRARY_DIRS})
+if(NIHIL_TESTS)
+ add_subdirectory(tests)
+ enable_testing()
+endif()