-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (20 loc) · 740 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
25 lines (20 loc) · 740 Bytes
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
cmake_minimum_required(VERSION 3.11)
project(tiles
VERSION 0.1
LANGUAGES CXX)
# --- Fetch FTXUI --------------------------------------------------------------
include(FetchContent)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG 05fc866d7434566fd6cd0f39f62ba4bd8af855d7
)
FetchContent_GetProperties(ftxui)
if(NOT ftxui_POPULATED)
FetchContent_Populate(ftxui)
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
add_executable(2048 src/2048.cpp)
target_link_libraries(2048 PRIVATE ftxui::component)
add_executable(fifteen src/fifteen.cpp)
target_link_libraries(fifteen PRIVATE ftxui::component)