summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: ee0087789f615486f02eaffedb3f08f2ccb49cc0 (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
# 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 3.21)
project(Katja)

include(CTest)
include(FetchContent)

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

add_library(katja
       katja/database.cpp include/katja/database.hpp
       katja/sbo.cpp include/katja/sbo.hpp
       katja/repository.cpp include/katja/repository.hpp
)
include_directories(include ${Boost_INCLUDE_DIR})

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