summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: cea689125796ac37b2586e0374f20a18f97431c2 (plain)
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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

cmake_minimum_required(VERSION 4.0.0)
project(Katja LANGUAGES CXX)

include(CTest)
include(GNUInstallDirs)

option(KATJA_BUILD_CLI "Build command line interface" ON)

set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_STANDARD 23)

find_package(Boost REQUIRED)

add_library(katja)
target_sources(katja PUBLIC FILE_SET all_my_modules TYPE CXX_MODULES FILES
	katja/database.cpp katja/repository.cpp katja/sbo.cpp)
include_directories(include ${Boost_INCLUDE_DIR})

add_subdirectory(backend)
if(KATJA_BUILD_CLI)
	add_subdirectory(cli)
endif()
if(BUILD_TESTING)
	add_subdirectory(tests)
endif()