-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (28 loc) · 1.01 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
cmake_minimum_required(VERSION 3.24)
project(Turing
LANGUAGES CXX
VERSION 0.2
)
set(CMAKE_BUILD_TYPE Release)
include(FetchContent)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE)
FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG v4.0.0
FIND_PACKAGE_ARGS NAMES ftxui
)
FetchContent_Declare(json
GIT_REPOSITORY https://github.com/nlohmann/json
GIT_TAG v3.10.5
FIND_PACKAGE_ARGS NAMES nlohmann_json
)
FetchContent_MakeAvailable(ftxui json)
set(CMAKE_CXX_STANDARD 20)
include_directories(include)
add_library(TuringLib src/turing.cpp)
add_library(TuringUI src/turingUI.cpp)
add_library(Translate src/translate.cpp)
target_link_libraries(Translate TuringLib)
target_link_libraries(TuringUI PRIVATE Translate ftxui::screen ftxui::dom ftxui::component TuringLib nlohmann_json::nlohmann_json)
add_executable(turing-cmd src/main.cpp)
target_link_libraries(turing-cmd PRIVATE Translate ftxui::screen ftxui::dom ftxui::component TuringLib TuringUI nlohmann_json::nlohmann_json)