From d27d1302d1fa1b96bf8f53f17fce947f19d21330 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sat, 21 Jun 2025 17:18:57 +0100 Subject: add nihil.config (incomplete) --- CMakeLists.txt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3