# 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()