-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (38 loc) · 1.18 KB
/
CMakeLists.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.28)
project(LangulusModFTXUI
VERSION 1.0.0
DESCRIPTION "Langulus plug-in module for handling user interface using FTXUI library"
HOMEPAGE_URL https://langulus.com
)
# Configure FTXUI library, it will be statically built inside this module
set(FTXUI_ENABLE_INSTALL OFF CACHE BOOL "" FORCE)
fetch_external_module(
FTXUI
GIT_REPOSITORY https://github.com/ArthurSonzogni/FTXUI.git
GIT_TAG 1d40687a403b7babdafdd577d10e001840b0f124
)
file(GLOB_RECURSE
LANGULUS_MOD_FTXUI_SOURCES
LIST_DIRECTORIES FALSE CONFIGURE_DEPENDS
source/*.cpp
)
# Build the module
add_langulus_mod(LangulusModFTXUI
${LANGULUS_MOD_FTXUI_SOURCES}
$<TARGET_OBJECTS:ftxui::screen>
$<TARGET_OBJECTS:ftxui::dom>
$<TARGET_OBJECTS:ftxui::component>
)
#target_link_libraries(LangulusModFTXUI
# PRIVATE ftxui::screen
# ftxui::dom
# ftxui::component
#)
target_include_directories(LangulusModFTXUI
PRIVATE ${FTXUI_SOURCE_DIR}/include
)
if(LANGULUS_TESTING)
enable_testing()
add_subdirectory(test)
endif()
add_subdirectory(demo)