-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
115 lines (93 loc) · 2.78 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
project(score_addon_threedim LANGUAGES CXX)
if(NOT TARGET score_lib_base)
include(ScoreExternalAddon)
endif()
if(NOT TARGET score_plugin_avnd)
return()
endif()
if(NOT TARGET score_plugin_gfx)
return()
endif()
find_package(${QT_VERSION} REQUIRED COMPONENTS Xml)
# libssynth
add_library(ssynth STATIC
3rdparty/libssynth/src/ssynth/Parser/EisenParser.cpp
3rdparty/libssynth/src/ssynth/Parser/Preprocessor.cpp
3rdparty/libssynth/src/ssynth/Parser/Tokenizer.cpp
3rdparty/libssynth/src/ssynth/Model/Action.cpp
3rdparty/libssynth/src/ssynth/Model/AmbiguousRule.cpp
3rdparty/libssynth/src/ssynth/Model/Builder.cpp
3rdparty/libssynth/src/ssynth/Model/CustomRule.cpp
3rdparty/libssynth/src/ssynth/Model/PrimitiveRule.cpp
3rdparty/libssynth/src/ssynth/Model/RuleSet.cpp
3rdparty/libssynth/src/ssynth/Model/State.cpp
3rdparty/libssynth/src/ssynth/Model/Transformation.cpp
3rdparty/libssynth/src/ssynth/Model/Rendering/TemplateRenderer.cpp
3rdparty/libssynth/src/ssynth/Model/Rendering/ObjRenderer.cpp
3rdparty/libssynth/src/ssynth/ColorPool.cpp
3rdparty/libssynth/src/ssynth/ColorUtils.cpp
3rdparty/libssynth/src/ssynth/Logging.cpp
3rdparty/libssynth/src/ssynth/MiniParser.cpp
3rdparty/libssynth/src/ssynth/RandomStreams.cpp
)
target_include_directories(ssynth
SYSTEM PRIVATE
3rdparty/libssynth/src
)
target_link_libraries(ssynth
PRIVATE
${QT_PREFIX}::Core
${QT_PREFIX}::Gui
${QT_PREFIX}::Xml
score_lib_base
)
if(NOT MSVC)
target_compile_options(ssynth PRIVATE -w)
endif()
# threedim addon
add_library(
score_addon_threedim
Threedim/TinyObj.hpp
Threedim/TinyObj.cpp
Threedim/Ply.hpp
Threedim/Ply.cpp
Threedim/ArrayToGeometry.hpp
Threedim/ArrayToGeometry.cpp
Threedim/StructureSynth.hpp
Threedim/StructureSynth.cpp
Threedim/ObjLoader.hpp
Threedim/ObjLoader.cpp
Threedim/Primitive.hpp
Threedim/Primitive.cpp
Threedim/Noise.hpp
Threedim/Noise.cpp
Threedim/ModelDisplay/ModelDisplayNode.hpp
Threedim/ModelDisplay/ModelDisplayNode.cpp
Threedim/ModelDisplay/Executor.hpp
Threedim/ModelDisplay/Executor.cpp
Threedim/ModelDisplay/Metadata.hpp
Threedim/ModelDisplay/Process.hpp
Threedim/ModelDisplay/Process.cpp
Threedim/ModelDisplay/Layer.hpp
3rdparty/miniply/miniply.cpp
score_addon_threedim.hpp
score_addon_threedim.cpp
)
set_property(TARGET score_addon_threedim PROPERTY SCORE_CUSTOM_PCH 1)
setup_score_plugin(score_addon_threedim)
target_include_directories(score_addon_threedim
SYSTEM PRIVATE
3rdparty/libssynth/src
3rdparty/vcglib
3rdparty/eigen
3rdparty/miniply
)
target_link_libraries(score_addon_threedim
PRIVATE
score_plugin_engine
score_plugin_avnd
score_plugin_gfx
fmt::fmt
ssynth
)