aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 457f6037fd3a04806038f15a187139294eb64b59 (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
# This source code is released into the public domain.

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)
add_compile_options(-Werror)
add_compile_options(-Wpedantic)

add_subdirectory(nihil)

if(NIHIL_UCL)
	add_subdirectory(nihil.ucl)
endif()

if(NIHIL_CONFIG)
	add_subdirectory(nihil.config)
endif()

if(NIHIL_TESTS)
	enable_testing()
endif()