aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.config/CMakeLists.txt')
-rw-r--r--nihil.config/CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/nihil.config/CMakeLists.txt b/nihil.config/CMakeLists.txt
new file mode 100644
index 0000000..8a52d3c
--- /dev/null
+++ b/nihil.config/CMakeLists.txt
@@ -0,0 +1,31 @@
+# This source code is released into the public domain.
+
+add_library(nihil.config STATIC)
+target_link_libraries(nihil.config PRIVATE
+ nihil.error
+ nihil.generator
+ nihil.posix
+ nihil.ucl
+)
+target_sources(nihil.config
+ PUBLIC FILE_SET modules TYPE CXX_MODULES FILES
+ nihil.config.ccm
+ read.ccm
+ store.ccm
+ write.ccm
+
+ option.ccm
+ string.ccm
+
+ PRIVATE
+ option.cc
+ read.cc
+ store.cc
+ string.cc
+ write.cc
+)
+
+if(NIHIL_TESTS)
+ add_subdirectory(tests)
+ enable_testing()
+endif()