summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/Release.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/Release/Release.cmake')
-rw-r--r--Utilities/Release/Release.cmake16
1 files changed, 12 insertions, 4 deletions
diff --git a/Utilities/Release/Release.cmake b/Utilities/Release/Release.cmake
index 7f7ca86..dadec45 100644
--- a/Utilities/Release/Release.cmake
+++ b/Utilities/Release/Release.cmake
@@ -51,11 +51,19 @@ IF(WIN32)
${PROJECT_BINARY_DIR}/Utilities/Release/${PROJECT_NAME}.nsi
IMMEDIATE @ONLY)
CONFIGURE_FILE(
- ${PROJECT_SOURCE_DIR}/Utilities/Release/Win32Release.sh.in
- ${PROJECT_BINARY_DIR}/Utilities/Release/Win32Release.sh
- IMMEDIATE @ONLY)
- CONFIGURE_FILE(
${PROJECT_SOURCE_DIR}/Utilities/Release/cmake_release.sh.in
${PROJECT_BINARY_DIR}/Utilities/Release/cmake_release.sh
IMMEDIATE @ONLY)
+ CONFIGURE_FILE(
+ ${PROJECT_SOURCE_DIR}/Utilities/Release/MakeRelease.cmake.in
+ ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake
+ IMMEDIATE @ONLY)
ENDIF(WIN32)
+
+IF (NSIS_MAKENSIS AND WINZIP_WZZIP)
+ # build the NSI
+ ADD_CUSTOM_TARGET( release
+ ${CMAKE_COMMAND} -P
+ ${PROJECT_BINARY_DIR}/Utilities/Release/MakeRelease.cmake
+ )
+ENDIF (NSIS_MAKENSIS AND WINZIP_WZZIP)