-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
77 lines (67 loc) · 2.99 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
70
71
72
73
74
75
76
77
project(score_addon_tutorial LANGUAGES CXX)
find_package(Qt5 COMPONENTS QuickWidgets)
# General initialization
score_common_setup()
# Source files
set(HDRS
Tutorial/Process/Executor/TutorialProcessExecutor.hpp
Tutorial/Process/Layer/TutorialProcessPresenter.hpp
Tutorial/Process/Layer/TutorialProcessView.hpp
Tutorial/Process/Layer/TutorialProcessLayerFactory.hpp
Tutorial/Process/Layer/TutorialProcessLayer.hpp
Tutorial/Process/LocalTree/TutorialProcessLocalTree.hpp
Tutorial/Process/Inspector/TutorialProcessInspector.hpp
Tutorial/Process/State/TutorialProcessState.hpp
Tutorial/Process/TutorialProcessModel.hpp
Tutorial/Process/TutorialProcessMetadata.hpp
Tutorial/Process/TutorialProcessFactory.hpp
Tutorial/ApplicationPlugin/TutorialApplicationPlugin.hpp
Tutorial/Panel/TutorialPanelDelegate.hpp
Tutorial/Panel/TutorialPanelDelegateFactory.hpp
Tutorial/Settings/TutorialSettingsModel.hpp
Tutorial/Settings/TutorialSettingsView.hpp
Tutorial/Settings/TutorialSettingsPresenter.hpp
Tutorial/Settings/TutorialSettingsFactory.hpp
Tutorial/DocumentPlugin/TutorialDocumentPlugin.hpp
Tutorial/Commands/AddBanana.hpp
Tutorial/Commands/AddEntity.hpp
Tutorial/Commands/TutorialCommandFactory.hpp
Tutorial/SimpleElement/SimpleElement.hpp
Tutorial/SimpleElement/SimpleEntity.hpp
Tutorial/PolymorphicEntity/PolymorphicEntity.hpp
Tutorial/PolymorphicEntity/PolymorphicEntityFactory.hpp
Tutorial/PolymorphicEntity/Implementation/ConcretePolymorphicEntity.hpp
score_addon_tutorial.hpp
)
set(SRCS
Tutorial/SimpleElement/SimpleElement.cpp
Tutorial/Process/Executor/TutorialProcessExecutor.cpp
Tutorial/Process/Layer/TutorialProcessPresenter.cpp
Tutorial/Process/Layer/TutorialProcessView.cpp
Tutorial/Process/LocalTree/TutorialProcessLocalTree.cpp
Tutorial/Process/Inspector/TutorialProcessInspector.cpp
Tutorial/Process/State/TutorialProcessState.cpp
Tutorial/Process/TutorialProcessModel.cpp
Tutorial/ApplicationPlugin/TutorialApplicationPlugin.cpp
Tutorial/Panel/TutorialPanelDelegate.cpp
Tutorial/Settings/TutorialSettingsModel.cpp
Tutorial/Settings/TutorialSettingsView.cpp
Tutorial/Settings/TutorialSettingsPresenter.cpp
Tutorial/DocumentPlugin/TutorialDocumentPlugin.cpp
Tutorial/Commands/AddBanana.cpp
Tutorial/Commands/AddEntity.cpp
Tutorial/SimpleElement/SimpleEntity.cpp
Tutorial/PolymorphicEntity/PolymorphicEntity.cpp
Tutorial/PolymorphicEntity/PolymorphicEntityFactory.cpp
Tutorial/PolymorphicEntity/Implementation/ConcretePolymorphicEntity.cpp
score_addon_tutorial.cpp
)
qt5_add_resources(QRCS "${CMAKE_CURRENT_SOURCE_DIR}/resources/Tutorial.qrc")
# Creation of the library
add_library(${PROJECT_NAME} ${SRCS} ${HDRS} ${QRCS})
# Code generation
score_generate_command_list_file(${PROJECT_NAME} "${HDRS}")
# Link
target_link_libraries(${PROJECT_NAME} PUBLIC score_plugin_engine Qt5::QuickWidgets)
# Target-specific options
setup_score_plugin(${PROJECT_NAME})