aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/package.cmake
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-18 19:28:36 +0100
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-02-18 19:28:36 +0100
commit284608d0645dcb90d0a443f155bb9e513eaf9eff (patch)
tree80e1afb38620396e65c6ccf1572ddd781e24f6f7 /cmake/package.cmake
parentf4eb81006930f3d2fe944298b63bb546f0ee3e9f (diff)
downloadegawk-284608d0645dcb90d0a443f155bb9e513eaf9eff.tar.gz
egawk-284608d0645dcb90d0a443f155bb9e513eaf9eff.tar.bz2
egawk-284608d0645dcb90d0a443f155bb9e513eaf9eff.zip
Preparations for building an NSIS installer.
Diffstat (limited to 'cmake/package.cmake')
-rw-r--r--cmake/package.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/package.cmake b/cmake/package.cmake
index 27fe285d..ffea3f04 100644
--- a/cmake/package.cmake
+++ b/cmake/package.cmake
@@ -24,7 +24,14 @@
## process this file with CMake to produce Makefile
-SET(CPACK_GENERATOR "TGZ")
+IF (WIN32)
+ SET(CPACK_GENERATOR "NSIS")
+ set(CPACK_NSIS_INSTALL_ROOT "C:")
+ELSE()
+ SET(CPACK_GENERATOR "TGZ")
+ SET(CPACK_PACKAGING_INSTALL_PREFIX /usr)
+ENDIF()
+
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}")
SET(CPACK_PACKAGE_NAME "gawk")
SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}")
@@ -33,6 +40,5 @@ SET(CPACK_PACKAGE_VERSION_MINOR "${GAWK_MINOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_PATCH "${GAWK_BUGFIX_VERSION}")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README")
-SET(CPACK_PACKAGING_INSTALL_PREFIX /usr)
INCLUDE(CPack)