26 lines
714 B
CMake
26 lines
714 B
CMake
# 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()
|