QGIS/postinstall/CMakeLists.txt

13 lines
410 B
CMake
Raw Normal View History

# for included scripts that set policies
2020-11-11 11:15:34 +01:00
install (CODE "cmake_policy(SET CMP0011 NEW)")
2020-11-11 11:15:34 +01:00
if(MSVC AND NOT USING_NMAKE)
set(CRSSYNC "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/crssync.exe")
else()
set(CRSSYNC "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync")
endif()
2018-02-01 00:09:31 +01:00
2020-11-11 11:15:34 +01:00
configure_file("PostInstall.cmake.in" "PostInstall.cmake" @ONLY)
install(SCRIPT "${CMAKE_BINARY_DIR}/postinstall/PostInstall.cmake")