git.s-ol.nu forks/DiligentCore / 8f78f03
Renamed INSTALL_DILIGENT_CORE cmake option to DILIGENT_INSTALL_CORE Egor Yusov 3 years ago
22 changed file(s) with 27 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
267267 endif()
268268
269269 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)
273273 endif()
274274
275275 if(MSVC)
297297 add_subdirectory(Graphics)
298298
299299 # Installation instructions
300 if(INSTALL_DILIGENT_CORE)
300 if(DILIGENT_INSTALL_CORE)
301301
302302 install_combined_static_lib(
303303 "${CMAKE_STATIC_LIBRARY_PREFIX}DiligentCore${CMAKE_STATIC_LIBRARY_SUFFIX}"
308308 )
309309
310310 install(FILES License.txt DESTINATION "Licenses" RENAME DiligentEngine-License.txt)
311 endif(INSTALL_DILIGENT_CORE)
311 endif(DILIGENT_INSTALL_CORE)
6464 FOLDER DiligentCore
6565 )
6666
67 if(INSTALL_DILIGENT_CORE)
67 if(DILIGENT_INSTALL_CORE)
6868 install_core_lib(Diligent-Common)
6969 endif()
7777 FOLDER DiligentCore/Graphics
7878 )
7979
80 if(INSTALL_DILIGENT_CORE)
80 if(DILIGENT_INSTALL_CORE)
8181 install_core_lib(Diligent-GLSLTools)
8282 endif()
4040 FOLDER DiligentCore/Graphics
4141 )
4242
43 if(INSTALL_DILIGENT_CORE)
43 if(DILIGENT_INSTALL_CORE)
4444 install_core_lib(Diligent-GraphicsAccessories)
4545 endif()
8888 FOLDER DiligentCore/Graphics
8989 )
9090
91 if(INSTALL_DILIGENT_CORE)
91 if(DILIGENT_INSTALL_CORE)
9292 install_core_lib(Diligent-GraphicsEngine)
9393 endif()
147147 readme.md PROPERTIES HEADER_FILE_ONLY TRUE
148148 )
149149
150 if(INSTALL_DILIGENT_CORE)
150 if(DILIGENT_INSTALL_CORE)
151151 install_core_lib(Diligent-GraphicsEngineD3D11-shared)
152152 install_core_lib(Diligent-GraphicsEngineD3D11-static)
153153 endif()
183183 readme.md PROPERTIES HEADER_FILE_ONLY TRUE
184184 )
185185
186 if(INSTALL_DILIGENT_CORE)
186 if(DILIGENT_INSTALL_CORE)
187187 install_core_lib(Diligent-GraphicsEngineD3D12-shared)
188188 install_core_lib(Diligent-GraphicsEngineD3D12-static)
189189 endif()
8585 FOLDER DiligentCore/Graphics/Helper
8686 )
8787
88 if(INSTALL_DILIGENT_CORE)
88 if(DILIGENT_INSTALL_CORE)
8989 install_core_lib(Diligent-GraphicsEngineD3DBase)
9090 endif()
135135 readme.md PROPERTIES HEADER_FILE_ONLY TRUE
136136 )
137137
138 if(INSTALL_DILIGENT_CORE)
138 if(DILIGENT_INSTALL_CORE)
139139 install_core_lib(Diligent-GraphicsEngineMetal-shared)
140140 install_core_lib(Diligent-GraphicsEngineMetal-static)
141141 endif()
3535 FOLDER DiligentCore/Graphics
3636 )
3737
38 if(INSTALL_DILIGENT_CORE)
38 if(DILIGENT_INSTALL_CORE)
3939 install_core_lib(Diligent-GraphicsEngineNextGenBase)
4040 endif()
244244 readme.md PROPERTIES HEADER_FILE_ONLY TRUE
245245 )
246246
247 if(INSTALL_DILIGENT_CORE)
247 if(DILIGENT_INSTALL_CORE)
248248 install_core_lib(Diligent-GraphicsEngineOpenGL-shared)
249249 install_core_lib(Diligent-GraphicsEngineOpenGL-static)
250250 endif()
292292 FOLDER DiligentCore/Graphics/Helper
293293 )
294294
295 if(INSTALL_DILIGENT_CORE)
295 if(DILIGENT_INSTALL_CORE)
296296 install_core_lib(Diligent-GraphicsEngineVk-shared)
297297 install_core_lib(Diligent-GraphicsEngineVk-static)
298298 endif()
7474 FOLDER DiligentCore/Graphics
7575 )
7676
77 if(INSTALL_DILIGENT_CORE)
77 if(DILIGENT_INSTALL_CORE)
7878 install_core_lib(Diligent-GraphicsTools)
7979 endif()
7676 FOLDER DiligentCore/Graphics
7777 )
7878
79 if(INSTALL_DILIGENT_CORE)
79 if(DILIGENT_INSTALL_CORE)
8080 install_core_lib(Diligent-HLSL2GLSLConverterLib)
8181 endif()
3838 FOLDER DiligentCore/Platforms
3939 )
4040
41 if(INSTALL_DILIGENT_CORE)
41 if(DILIGENT_INSTALL_CORE)
4242 install_core_lib(Diligent-AndroidPlatform)
4343 endif()
5151 FOLDER DiligentCore/Platforms
5252 )
5353
54 if(INSTALL_DILIGENT_CORE)
54 if(DILIGENT_INSTALL_CORE)
5555 install_core_lib(Diligent-ApplePlatform)
5656 endif()
4141 )
4242
4343
44 if(INSTALL_DILIGENT_CORE)
44 if(DILIGENT_INSTALL_CORE)
4545 install_core_lib(Diligent-BasicPlatform)
4646 get_target_relative_dir(Diligent-BasicPlatform BASIC_PLATFORM_DIR)
4747 install(DIRECTORY "../interface"
3636 FOLDER DiligentCore/Platforms
3737 )
3838
39 if(INSTALL_DILIGENT_CORE)
39 if(DILIGENT_INSTALL_CORE)
4040 install_core_lib(Diligent-LinuxPlatform)
4141 endif()
3838 FOLDER DiligentCore/Platforms
3939 )
4040
41 if(INSTALL_DILIGENT_CORE)
41 if(DILIGENT_INSTALL_CORE)
4242 install_core_lib(Diligent-UniversalWindowsPlatform)
4343 endif()
4040 FOLDER DiligentCore/Platforms
4141 )
4242
43 if(INSTALL_DILIGENT_CORE)
43 if(DILIGENT_INSTALL_CORE)
4444 install_core_lib(Diligent-Win32Platform)
4545 endif()
4242 FOLDER DiligentCore
4343 )
4444
45 if(INSTALL_DILIGENT_CORE)
45 if(DILIGENT_INSTALL_CORE)
4646 install_core_lib(Diligent-Primitives)
4747 endif()
11
22 if(PLATFORM_WIN32 OR PLATFORM_LINUX OR PLATFORM_MACOS)
33 add_subdirectory(glew)
4 if(INSTALL_DILIGENT_CORE)
4 if(DILIGENT_INSTALL_CORE)
55 install(TARGETS glew-static
66 ARCHIVE DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
77 LIBRARY DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
6969 list(APPEND INSTALL_TARGETS spirv-cross-core)
7070 install(FILES SPIRV-Cross/LICENSE DESTINATION "Licenses/ThirdParty/${DILIGENT_CORE_DIR}" RENAME SPIRV-Cross-License.txt)
7171
72 if(INSTALL_DILIGENT_CORE)
72 if(DILIGENT_INSTALL_CORE)
7373 install(TARGETS ${INSTALL_TARGETS}
7474 ARCHIVE DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"
7575 LIBRARY DESTINATION "lib/${DILIGENT_CORE_DIR}/$<CONFIG>"