summaryrefslogtreecommitdiff
path: root/cli/CMakeLists.txt
blob: 533e2bc530d55b2742d27f9acaabd2094597a76f (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
31
# 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/.

FetchContent_Declare(ftxui
	GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
	GIT_TAG v6.1.9
	GIT_PROGRESS TRUE
	GIT_SHALLOW TRUE
	EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(ftxui)

FetchContent_Declare(toml11
	GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
	GIT_TAG v4.4.0
	GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(toml11)

add_executable(katja-cli main.cpp component.hpp component.cpp)
target_sources(katja-cli PUBLIC FILE_SET all_my_modules TYPE CXX_MODULES FILES page.cpp)
target_include_directories(katja-cli PRIVATE ${Boost_INCLUDE_DIR})
target_link_libraries(katja-cli
	LINK_PUBLIC katja
	LINK_PRIVATE ftxui::screen
	LINK_PRIVATE ftxui::dom
	LINK_PRIVATE ftxui::component
	LINK_PRIVATE toml11::toml11
)
set_target_properties(katja-cli PROPERTIES RUNTIME_OUTPUT_NAME katja)