-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
46 lines (39 loc) · 1.47 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
cmake_minimum_required (VERSION 3.17)
project(timeAccumulator)
find_package(Boost 1.71.0)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
include(FetchContent)
FetchContent_Declare(
msgpack
GIT_REPOSITORY https://github.com/msgpack/msgpack-c.git
GIT_TAG cpp-3.2.1
)
FetchContent_GetProperties(msgpack)
if(NOT msgpack_POPULATED)
FetchContent_Populate(msgpack)
add_subdirectory(${msgpack_SOURCE_DIR} ${msgpack_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_Declare(
ftxui
GIT_REPOSITORY https://github.com/aaleino/FTXUI.git
GIT_TAG 40929423e0b3eb5e276661be91f183641440cd5c
)
FetchContent_GetProperties(ftxui)
if(NOT ftxui_POPULATED)
FetchContent_Populate(ftxui)
add_subdirectory(${ftxui_SOURCE_DIR} ${ftxui_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
include_directories("${CMAKE_BINARY_DIR}/_deps/msgpack-src/include")
include_directories("${CMAKE_BINARY_DIR}/_deps/ftxui-src/include")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++2a -pthread")
add_executable(timeAccumulator src/main.cpp src/liveApplication.cpp src/liveApplication.h
src/mainSystem.cpp src/mainSystem.h src/intermediateSystem.cpp src/intermediateSystem.h
src/fileSystem.cpp src/fileSystem.h src/language.h src/language.cpp)
target_link_libraries(timeAccumulator
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component
)
set_target_properties(timeAccumulator PROPERTIES CXX_STANDARD 20)