aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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()