#------------------------------------------------------------------- # This file is part of the CMake build system for SkyX # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ############################################################# # Install useful CMake modules. # These are necessary to compile the samples from the install # directory, but can also be used for custom projects. ############################################################# if(WIN32 OR APPLE) set(SKYX_CMAKE_DIR "CMake") else() set(SKYX_CMAKE_DIR "${SKYX_LIB_DIRECTORY}/SKYX/cmake") endif() set(INST_FILES Utils/SkyXFindPkgMacros.cmake Utils/SkyXConfigTargets.cmake Utils/SkyXGetVersion.cmake Utils/SkyXMacroLogFeature.cmake ) if (WIN32) set(INST_FILES ${INST_FILES} Templates/VisualStudioUserFile.vcproj.user.in ) endif () install(FILES ${INST_FILES} DESTINATION ${SKYX_CMAKE_DIR}) ############################################################# # install config files ############################################################# if (SKYX_INSTALL_SAMPLES) if (WIN32) set(SKYX_CFG_INSTALL_PATH "bin") elseif (APPLE) set(SKYX_CFG_INSTALL_PATH "bin") elseif (UNIX) set(SKYX_CFG_INSTALL_PATH "share/SKYX") endif () install(FILES Templates/resources.cfg Templates/plugins_d.cfg DESTINATION "${SKYX_CFG_INSTALL_PATH}${SKYX_DEBUG_PATH}" CONFIGURATIONS Debug ) install(FILES Templates/resources.cfg Templates/plugins.cfg DESTINATION "${SKYX_CFG_INSTALL_PATH}${SKYX_RELEASE_PATH}" CONFIGURATIONS Release None "" ) install(FILES Templates/resources.cfg Templates/plugins.cfg DESTINATION "${SKYX_CFG_INSTALL_PATH}${SKYX_RELWDBG_PATH}" CONFIGURATIONS RelWithDebInfo ) install(FILES Templates/resources.cfg Templates/plugins.cfg DESTINATION "${SKYX_CFG_INSTALL_PATH}${SKYX_MINSIZE_PATH}" CONFIGURATIONS MinSizeRel ) endif ()