# 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(FetchContent) option(KATJA_BUILD_TUI "Build text user interface" ON) set(CMAKE_EXPORT_COMPILE_COMMANDS 1) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_CXX_STANDARD 23) 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}) if(KATJA_BUILD_TUI) add_subdirectory(cli) endif() if(BUILD_TESTING) add_subdirectory(tests) endif()