Renamed INSTALL_DILIGENT_CORE cmake option to DILIGENT_INSTALL_CORE
Egor Yusov
3 years ago
267 | 267 |
endif()
|
268 | 268 |
|
269 | 269 |
if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS)
|
270 | |
option(INSTALL_DILIGENT_CORE "Install DiligentCore module headers and libraries" ON)
|
271 | |
else()
|
272 | |
set(INSTALL_DILIGENT_CORE OFF)
|
|
270 |
option(DILIGENT_INSTALL_CORE "Install DiligentCore module headers and libraries" ON)
|
|
271 |
else()
|
|
272 |
set(DILIGENT_INSTALL_CORE OFF)
|
273 | 273 |
endif()
|
274 | 274 |
|
275 | 275 |
if(MSVC)
|
|
297 | 297 |
add_subdirectory(Graphics)
|
298 | 298 |
|
299 | 299 |
# Installation instructions
|
300 | |
if(INSTALL_DILIGENT_CORE)
|
|
300 |
if(DILIGENT_INSTALL_CORE)
|
301 | 301 |
|
302 | 302 |
install_combined_static_lib(
|
303 | 303 |
"${CMAKE_STATIC_LIBRARY_PREFIX}DiligentCore${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
|
308 | 308 |
)
|
309 | 309 |
|
310 | 310 |
install(FILES License.txt DESTINATION "Licenses" RENAME DiligentEngine-License.txt)
|
311 | |
endif(INSTALL_DILIGENT_CORE)
|
|
311 |
endif(DILIGENT_INSTALL_CORE)
|
64 | 64 |
FOLDER DiligentCore
|
65 | 65 |
)
|
66 | 66 |
|
67 | |
if(INSTALL_DILIGENT_CORE)
|
|
67 |
if(DILIGENT_INSTALL_CORE)
|
68 | 68 |
install_core_lib(Diligent-Common)
|
69 | 69 |
endif()
|
77 | 77 |
FOLDER DiligentCore/Graphics
|
78 | 78 |
)
|
79 | 79 |
|
80 | |
if(INSTALL_DILIGENT_CORE)
|
|
80 |
if(DILIGENT_INSTALL_CORE)
|
81 | 81 |
install_core_lib(Diligent-GLSLTools)
|
82 | 82 |
endif()⏎
|
40 | 40 |
FOLDER DiligentCore/Graphics
|
41 | 41 |
)
|
42 | 42 |
|
43 | |
if(INSTALL_DILIGENT_CORE)
|
|
43 |
if(DILIGENT_INSTALL_CORE)
|
44 | 44 |
install_core_lib(Diligent-GraphicsAccessories)
|
45 | 45 |
endif()⏎
|
88 | 88 |
FOLDER DiligentCore/Graphics
|
89 | 89 |
)
|
90 | 90 |
|
91 | |
if(INSTALL_DILIGENT_CORE)
|
|
91 |
if(DILIGENT_INSTALL_CORE)
|
92 | 92 |
install_core_lib(Diligent-GraphicsEngine)
|
93 | 93 |
endif()⏎
|
147 | 147 |
readme.md PROPERTIES HEADER_FILE_ONLY TRUE
|
148 | 148 |
)
|
149 | 149 |
|
150 | |
if(INSTALL_DILIGENT_CORE)
|
|
150 |
if(DILIGENT_INSTALL_CORE)
|
151 | 151 |
install_core_lib(Diligent-GraphicsEngineD3D11-shared)
|
152 | 152 |
install_core_lib(Diligent-GraphicsEngineD3D11-static)
|
153 | 153 |
endif()⏎
|
183 | 183 |
readme.md PROPERTIES HEADER_FILE_ONLY TRUE
|
184 | 184 |
)
|
185 | 185 |
|
186 | |
if(INSTALL_DILIGENT_CORE)
|
|
186 |
if(DILIGENT_INSTALL_CORE)
|
187 | 187 |
install_core_lib(Diligent-GraphicsEngineD3D12-shared)
|
188 | 188 |
install_core_lib(Diligent-GraphicsEngineD3D12-static)
|
189 | 189 |
endif()⏎
|
85 | 85 |
FOLDER DiligentCore/Graphics/Helper
|
86 | 86 |
)
|
87 | 87 |
|
88 | |
if(INSTALL_DILIGENT_CORE)
|
|
88 |
if(DILIGENT_INSTALL_CORE)
|
89 | 89 |
install_core_lib(Diligent-GraphicsEngineD3DBase)
|
90 | 90 |
endif()⏎
|
135 | 135 |
readme.md PROPERTIES HEADER_FILE_ONLY TRUE
|
136 | 136 |
)
|
137 | 137 |
|
138 | |
if(INSTALL_DILIGENT_CORE)
|
|
138 |
if(DILIGENT_INSTALL_CORE)
|
139 | 139 |
install_core_lib(Diligent-GraphicsEngineMetal-shared)
|
140 | 140 |
install_core_lib(Diligent-GraphicsEngineMetal-static)
|
141 | 141 |
endif()
|
35 | 35 |
FOLDER DiligentCore/Graphics
|
36 | 36 |
)
|
37 | 37 |
|
38 | |
if(INSTALL_DILIGENT_CORE)
|
|
38 |
if(DILIGENT_INSTALL_CORE)
|
39 | 39 |
install_core_lib(Diligent-GraphicsEngineNextGenBase)
|
40 | 40 |
endif()⏎
|
244 | 244 |
readme.md PROPERTIES HEADER_FILE_ONLY TRUE
|
245 | 245 |
)
|
246 | 246 |
|
247 | |
if(INSTALL_DILIGENT_CORE)
|
|
247 |
if(DILIGENT_INSTALL_CORE)
|
248 | 248 |
install_core_lib(Diligent-GraphicsEngineOpenGL-shared)
|
249 | 249 |
install_core_lib(Diligent-GraphicsEngineOpenGL-static)
|
250 | 250 |
endif()
|
292 | 292 |
FOLDER DiligentCore/Graphics/Helper
|
293 | 293 |
)
|
294 | 294 |
|
295 | |
if(INSTALL_DILIGENT_CORE)
|
|
295 |
if(DILIGENT_INSTALL_CORE)
|
296 | 296 |
install_core_lib(Diligent-GraphicsEngineVk-shared)
|
297 | 297 |
install_core_lib(Diligent-GraphicsEngineVk-static)
|
298 | 298 |
endif()
|
74 | 74 |
FOLDER DiligentCore/Graphics
|
75 | 75 |
)
|
76 | 76 |
|
77 | |
if(INSTALL_DILIGENT_CORE)
|
|
77 |
if(DILIGENT_INSTALL_CORE)
|
78 | 78 |
install_core_lib(Diligent-GraphicsTools)
|
79 | 79 |
endif()⏎
|
76 | 76 |
FOLDER DiligentCore/Graphics
|
77 | 77 |
)
|
78 | 78 |
|
79 | |
if(INSTALL_DILIGENT_CORE)
|
|
79 |
if(DILIGENT_INSTALL_CORE)
|
80 | 80 |
install_core_lib(Diligent-HLSL2GLSLConverterLib)
|
81 | 81 |
endif()⏎
|
38 | 38 |
FOLDER DiligentCore/Platforms
|
39 | 39 |
)
|
40 | 40 |
|
41 | |
if(INSTALL_DILIGENT_CORE)
|
|
41 |
if(DILIGENT_INSTALL_CORE)
|
42 | 42 |
install_core_lib(Diligent-AndroidPlatform)
|
43 | 43 |
endif()⏎
|
51 | 51 |
FOLDER DiligentCore/Platforms
|
52 | 52 |
)
|
53 | 53 |
|
54 | |
if(INSTALL_DILIGENT_CORE)
|
|
54 |
if(DILIGENT_INSTALL_CORE)
|
55 | 55 |
install_core_lib(Diligent-ApplePlatform)
|
56 | 56 |
endif()
|
41 | 41 |
)
|
42 | 42 |
|
43 | 43 |
|
44 | |
if(INSTALL_DILIGENT_CORE)
|
|
44 |
if(DILIGENT_INSTALL_CORE)
|
45 | 45 |
install_core_lib(Diligent-BasicPlatform)
|
46 | 46 |
get_target_relative_dir(Diligent-BasicPlatform BASIC_PLATFORM_DIR)
|
47 | 47 |
install(DIRECTORY "../interface"
|
36 | 36 |
FOLDER DiligentCore/Platforms
|
37 | 37 |
)
|
38 | 38 |
|
39 | |
if(INSTALL_DILIGENT_CORE)
|
|
39 |
if(DILIGENT_INSTALL_CORE)
|
40 | 40 |
install_core_lib(Diligent-LinuxPlatform)
|
41 | 41 |
endif()
|
38 | 38 |
FOLDER DiligentCore/Platforms
|
39 | 39 |
)
|
40 | 40 |
|
41 | |
if(INSTALL_DILIGENT_CORE)
|
|
41 |
if(DILIGENT_INSTALL_CORE)
|
42 | 42 |
install_core_lib(Diligent-UniversalWindowsPlatform)
|
43 | 43 |
endif()
|
40 | 40 |
FOLDER DiligentCore/Platforms
|
41 | 41 |
)
|
42 | 42 |
|
43 | |
if(INSTALL_DILIGENT_CORE)
|
|
43 |
if(DILIGENT_INSTALL_CORE)
|
44 | 44 |
install_core_lib(Diligent-Win32Platform)
|
45 | 45 |
endif()⏎
|
42 | 42 |
FOLDER DiligentCore
|
43 | 43 |
)
|
44 | 44 |
|
45 | |
if(INSTALL_DILIGENT_CORE)
|
|
45 |
if(DILIGENT_INSTALL_CORE)
|
46 | 46 |
install_core_lib(Diligent-Primitives)
|
47 | 47 |
endif()⏎
|
1 | 1 |
|
2 | 2 |
if(PLATFORM_WIN32 OR PLATFORM_LINUX OR PLATFORM_MACOS)
|
3 | 3 |
add_subdirectory(glew)
|
4 | |
if(INSTALL_DILIGENT_CORE)
|
|
4 |
if(DILIGENT_INSTALL_CORE)
|
5 | 5 |
install(TARGETS glew-static
|
6 | 6 |
ARCHIVE DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
|
7 | 7 |
LIBRARY DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
|
|
69 | 69 |
list(APPEND INSTALL_TARGETS spirv-cross-core)
|
70 | 70 |
install(FILES SPIRV-Cross/LICENSE DESTINATION "Licenses/ThirdParty/${DILIGENT_CORE_DIR}" RENAME SPIRV-Cross-License.txt)
|
71 | 71 |
|
72 | |
if(INSTALL_DILIGENT_CORE)
|
|
72 |
if(DILIGENT_INSTALL_CORE)
|
73 | 73 |
install(TARGETS ${INSTALL_TARGETS}
|
74 | 74 |
ARCHIVE DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
|
75 | 75 |
LIBRARY DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
|