WSL/SLF GitLab Repository

Commit 11b3fa7d authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Small bug fix and first steps toward generating packages for Windows and Mac

parent ce4dec7c
......@@ -186,14 +186,28 @@ set(CPACK_RPM_PACKAGE_GROUP "Development/Libraries")
if (DEST MATCHES "par")
set(PACKAGE_EXTRA "-par")
endif(DEST MATCHES "par")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
set(VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_GENERATOR "DEB;RPM;TGZ;")
IF(UNIX)
IF(APPLE)
set(CPACK_GENERATOR "PackageMaker;")
ELSE(APPLE)
set(CPACK_GENERATOR "DEB;RPM;TGZ;")
ENDIF(APPLE)
ELSE(UNIX)
IF(WIN32)
SET(CPACK_GENERATOR "NSIS;")
SET(CPACK_PACKAGE_ICON "meteoio/icon.bmp")
ENDIF(WIN32)
ENDIF(UNIX)
#set(CPACK_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
set(CPACK_ARCH "i386")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}${PACKAGE_EXTRA}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CPACK_ARCH}")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}${PACKAGE_EXTRA}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CPACK_ARCH}")
include(CPack)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment