forked from speed-dreams/speed-dreams-code
Added checks for CMake version for newer features
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8325 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 6a1de35b6d38fe05880bbcefcb730a8e7c7b6015 Former-commit-id: 5e6ed948d6cae672ed3f25d5ebe4b42e6f3a0193
This commit is contained in:
parent
1ee30dcb72
commit
84935cd39e
2 changed files with 13 additions and 3 deletions
|
@ -248,5 +248,8 @@ IF(OPTION_PACKAGING)
|
|||
ENDIF(OPTION_PACKAGING)
|
||||
|
||||
IF(OPTION_ALL_IN_ONE_PACKAGING)
|
||||
IF(MSVC AND ${CMAKE_VERSION} VERSION_LESS "3.17")
|
||||
MESSAGE(SEND_ERROR "OPTION_ALL_IN_ONE_PACKAGING requires CMake 3.17 or greater on Windows")
|
||||
ENDIF(MSVC AND ${CMAKE_VERSION} VERSION_LESS "3.17")
|
||||
INCLUDE(CPack)
|
||||
ENDIF(OPTION_ALL_IN_ONE_PACKAGING)
|
||||
|
|
|
@ -107,9 +107,16 @@ IF(WIN32)
|
|||
SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\icons\\\\icon.ico")
|
||||
SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\icons\\\\icon.ico")
|
||||
SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\img\\\\header.bmp")
|
||||
|
||||
IF(NOT ${CMAKE_VERSION} VERSION_LESS "3.5")
|
||||
SET(CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\img\\\\header-vert.bmp")
|
||||
SET(CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\img\\\\header-vert.bmp")
|
||||
ENDIF(NOT ${CMAKE_VERSION} VERSION_LESS "3.5")
|
||||
|
||||
IF(NOT ${CMAKE_VERSION} VERSION_LESS "3.17")
|
||||
SET(CPACK_NSIS_MUI_HEADERIMAGE "${CMAKE_SOURCE_DIR}\\\\data\\\\data\\\\img\\\\header.bmp")
|
||||
ENDIF(NOT ${CMAKE_VERSION} VERSION_LESS "3.17")
|
||||
|
||||
|
||||
# Extra shortcuts to add in the start menu (a list of pairs : URL, Menu label).
|
||||
SET(CPACK_NSIS_MENU_LINKS
|
||||
|
|
Loading…
Reference in a new issue