aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-21 17:18:57 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-21 17:18:57 +0100
commitd27d1302d1fa1b96bf8f53f17fce947f19d21330 (patch)
treef56ef29d7816c3b574b3359c746355a44e3b0819 /CMakeLists.txt
parent75c6b5fee029ec95e7e45e18525e3e78b9616f48 (diff)
downloadnihil-d27d1302d1fa1b96bf8f53f17fce947f19d21330.tar.gz
nihil-d27d1302d1fa1b96bf8f53f17fce947f19d21330.tar.bz2
add nihil.config (incomplete)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9df3b46..457f603 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,14 @@ cmake_minimum_required(VERSION 3.28)
project(libexi)
+option(NIHIL_CONFIG "Build the nihil.config library" ON)
+option(NIHIL_UCL "Build the nihil.ucl library" ON)
+option(NIHIL_TESTS "Build nihil's unit tests" ON)
+
set(CMAKE_CXX_STANDARD 26)
+find_package(PkgConfig REQUIRED)
+
add_compile_options(-W)
add_compile_options(-Wall)
add_compile_options(-Wextra)
@@ -13,6 +19,15 @@ add_compile_options(-Werror)
add_compile_options(-Wpedantic)
add_subdirectory(nihil)
-add_subdirectory(tests)
-enable_testing()
+if(NIHIL_UCL)
+ add_subdirectory(nihil.ucl)
+endif()
+
+if(NIHIL_CONFIG)
+ add_subdirectory(nihil.config)
+endif()
+
+if(NIHIL_TESTS)
+ enable_testing()
+endif()