-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
70 lines (61 loc) · 2.31 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 3.21)
project(APVS LANGUAGES CXX)
# APVS uses C++17 features
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x)
FetchContent_MakeAvailable(SFML)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
# Compile target
set(SOURCE_FILES
"src/main.cpp"
"src/Core/Resources.hpp"
"src/Core/Resources.cpp"
"src/Core/Application.hpp"
"src/Core/Application.cpp"
"src/State/Base/State.hpp"
"src/State/Base/State.cpp"
"src/State/Base/StateMachine.hpp"
"src/State/Base/StateMachine.cpp"
"src/State/CheckoutState.hpp"
"src/State/CheckoutState.cpp"
"src/State/CurrencySelectionState.hpp"
"src/State/CurrencySelectionState.cpp"
"src/State/CheckoutState.hpp"
"src/State/CheckoutState.cpp"
"src/State/AvailablePrescriptionState.hpp"
"src/State/AvailablePrescriptionState.cpp"
"src/State/PatientInfoState.hpp"
"src/State/PatientInfoState.cpp"
"src/State/DLInfoState.hpp"
"src/State/DLInfoState.cpp"
"src/State/IntroState.hpp"
"src/State/IntroState.cpp"
"src/UI/Interface/Elements/_base/UIElement.hpp"
"src/UI/Interface/Elements/Button/Base/Button.hpp"
"src/UI/Interface/Elements/Button/CircleButton.cpp"
"src/UI/Interface/Elements/Button/RectButton.cpp"
"src/UI/Interface/Elements/Button/StadiumButton.cpp"
"src/UI/Interface/Elements/Textbox/Textbox.hpp"
"src/UI/Interface/Elements/Textbox/Textbox.cpp"
"src/UI/Interface/Elements/Toggle/Toggle.hpp"
"src/UI/Interface/Elements/Toggle/Toggle.cpp"
"src/UI/Interface/Shapes/ConvexShape.hpp"
"src/UI/Interface/Shapes/ConvexShape.cpp"
"src/UI/Interface/Shapes/StadiumShape.hpp"
"src/UI/Interface/Shapes/StadiumShape.cpp"
)
add_executable(APVS ${SOURCE_FILES})
target_link_libraries(APVS PRIVATE sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
target_compile_features(APVS PRIVATE cxx_std_17)
if (WIN32 AND BUILD_SHARED_LIBS)
add_custom_command(TARGET APVS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:APVS> $<TARGET_FILE_DIR:APVS> COMMAND_EXPAND_LISTS)
endif()
install(TARGETS APVS
CONFIGURATIONS Debug
RUNTIME DESTINATION)