git.s-ol.nu ~forks/DiligentTools / 9c34b5a
Renamed INSTALL_DILIGENT_TOOLS cmake option to DILIGENT_INSTALL_TOOLS Egor Yusov 2 years ago
6 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
4444 FOLDER DiligentTools
4545 )
4646
47 if(INSTALL_DILIGENT_TOOLS)
47 if(DILIGENT_INSTALL_TOOLS)
4848 install_tools_lib(Diligent-AssetLoader)
4949 endif()
44 file(RELATIVE_PATH DILIGENT_TOOLS_DIR "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
55
66 if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS)
7 option(INSTALL_DILIGENT_TOOLS "Install DiligentTool module headers and libraries" ON)
7 option(DILIGENT_INSTALL_TOOLS "Install DiligentTool module headers and libraries" ON)
88 else()
9 set(INSTALL_DILIGENT_TOOLS OFF)
9 set(DILIGENT_INSTALL_TOOLS OFF)
1010 endif()
1111
1212 function(install_tools_lib _TARGET)
4949 endif()
5050
5151 # Installation instructions
52 if(INSTALL_DILIGENT_TOOLS)
52 if(DILIGENT_INSTALL_TOOLS)
5353
5454 install_combined_static_lib(
5555 "${CMAKE_STATIC_LIBRARY_PREFIX}DiligentTools${CMAKE_STATIC_LIBRARY_SUFFIX}"
3535 FOLDER DiligentTools
3636 )
3737
38 if(INSTALL_DILIGENT_TOOLS)
38 if(DILIGENT_INSTALL_TOOLS)
3939 install(TARGETS HLSL2GLSLConverter
4040 ARCHIVE DESTINATION "lib/${DILIGENT_TOOLS_DIR}/$<CONFIG>"
4141 LIBRARY DESTINATION "lib/${DILIGENT_TOOLS_DIR}/$<CONFIG>"
101101 FOLDER DiligentTools
102102 )
103103
104 if(INSTALL_DILIGENT_TOOLS)
104 if(DILIGENT_INSTALL_TOOLS)
105105 install_tools_lib(Diligent-Imgui)
106106 endif()
5252 FOLDER DiligentTools
5353 )
5454
55 if(INSTALL_DILIGENT_TOOLS)
55 if(DILIGENT_INSTALL_TOOLS)
5656 install_tools_lib(Diligent-TextureLoader)
5757 endif()
1616 install(FILES imgui/LICENSE.txt DESTINATION ${LICENSE_INSTALL_PATH} RENAME imgui-license.txt)
1717 install(FILES imGuIZMO.quat/license.txt DESTINATION ${LICENSE_INSTALL_PATH} RENAME imGuIZMO.quat-license.txt)
1818
19 if(INSTALL_DILIGENT_TOOLS)
19 if(DILIGENT_INSTALL_TOOLS)
2020 set(THIRD_PARTY_TARGETS LibJpeg LibPng LibTiff Lua ZLib)
2121 install(TARGETS ${THIRD_PARTY_TARGETS}
2222 ARCHIVE DESTINATION "lib/${DILIGENT_TOOLS_DIR}/$<CONFIG>"