forked from courseworks/AP1400-2-HW5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 827 Bytes
/
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
cmake_minimum_required(VERSION 3.13)
project(AP)
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
FetchContent_Declare(
ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG c033ca61ae8fb264542d0326d1309e0a3bde945a
)
FetchContent_GetProperties(ftxui)
if(NOT ftxui_POPULATED)
FetchContent_Populate(ftxui)
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
find_package(GTest REQUIRED)
include_directories(include/)
# src/)
add_executable(main
src/main.cpp
src/unit_test.cpp
src/espresso_based.cpp
src/cappuccino.cpp
src/mocha.cpp
)
target_link_libraries(main
GTest::GTest
GTest::Main
ftxui::screen
ftxui::dom
)