mirea-projects/Term papers/ЭФБО-09-23 Калинин Никита Викторович Курсовая работа по индустреальному программированию продвинутый уровень 2 семестр/app/CMakeLists.txt

47 lines
1011 B
CMake
Raw Normal View History

2024-09-23 23:22:33 +00:00
cmake_minimum_required (VERSION 3.11)
# --- Dependencies -------------------------------------------------------------
include(FetchContent)
FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG v5.0.0
GIT_PROGRESS TRUE
GIT_SHALLOW FALSE
)
FetchContent_MakeAvailable(ftxui)
FetchContent_Declare(fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG master
)
FetchContent_MakeAvailable(fmt)
# ------------------------------------------------------------------------------
project(factory-emulator
LANGUAGES CXX
VERSION 1.0.0
)
add_executable(factory-emulator
src/main.cpp
src/models.cpp
src/models.h
src/system.cpp
src/system.h
src/interface.cpp
src/interface.h
src/environment.h
)
target_include_directories(factory-emulator PRIVATE src)
target_compile_features(factory-emulator PRIVATE cxx_std_20)
target_link_libraries(factory-emulator
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component
PRIVATE fmt::fmt
)