blob: 8bf5a42284959ea2306a4cd4b317ea11b26cb995 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# This source code is released into the public domain.
cmake_minimum_required(VERSION 3.28)
project(nihil)
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)
add_compile_options(-Werror)
add_compile_options(-Wpedantic)
add_subdirectory(nihil.cli)
add_subdirectory(nihil.core)
add_subdirectory(nihil.error)
add_subdirectory(nihil.flagset)
add_subdirectory(nihil.generator)
add_subdirectory(nihil.guard)
add_subdirectory(nihil.match)
add_subdirectory(nihil.monad)
add_subdirectory(nihil.posix)
add_subdirectory(nihil.util)
add_subdirectory(nihil.uuid)
if(NIHIL_UCL)
add_subdirectory(nihil.ucl)
endif()
if(NIHIL_CONFIG)
add_subdirectory(nihil.config)
endif()
if(NIHIL_TESTS)
enable_testing()
endif()
|