WSL/SLF GitLab Repository

Commit bbe83e9b authored by Mathias Bavay's avatar Mathias Bavay
Browse files

More work on the packaging

parent fdfd0bde
......@@ -95,6 +95,8 @@ ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/c
#for the install target
FILE(GLOB xmlfiles "inishell-apps/*.xml")
INSTALL(FILES ${xmlfiles} DESTINATION inishell-apps COMPONENT resources)
FILE(GLOB pngfiles "inishell-apps/*.png")
INSTALL(FILES ${pngfiles} DESTINATION inishell-apps COMPONENT resources)
IF(WIN32)
FILE(GLOB dlls "bin/*.dll")
INSTALL(FILES ${dlls} DESTINATION bin COMPONENT exe)
......@@ -109,8 +111,8 @@ ENDIF(WIN32)
###########################################################
## CPACK section
###########################################################
SET(CPACK_PACKAGE_DESCRIPTION "Inishell Graphical User Interface dynamic generator for numerical models")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An XML description of the input fields necessary to configure a given numerical model is used to generate on the fly a Graphical User Interface that lets the user configure the numerical model and even run it if so configured")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Inishell Graphical User Interface dynamic generator for numerical models")
SET(CPACK_PACKAGE_DESCRIPTION "An XML description of the input fields necessary to configure a given numerical model is used to generate on the fly a Graphical User Interface that lets the user configure the numerical model and even run it if so configured")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/Welcome.txt")
SET(CPACK_PACKAGE_NAME "Inishell")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}")
......@@ -163,8 +165,9 @@ IF(UNIX)
SET(CPACK_GENERATOR "DEB;RPM;TGZ")
SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
SET(CPACK_DEBIAN_PACKAGE_NAME "inishell")
SET(CPACK_DEBIAN_PACKAGE_SECTION "devel")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libm.so,libc.so,libQt5Widgets.so,libQt5Xml.so,libQt5XmlPatterns.so,libQt5Gui.so,libQt5Network.so,libQt5Core.so,libstdc++.so,libgcc_s.so") #objdump -p lib/libmeteoio.so | grep NEEDED | tr -s ' ' | cut -d' ' -f3 | tr '\n' ','
SET(CPACK_DEBIAN_PACKAGE_SECTION "Education/Science")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libQt5Widgets5,libQt5Xml5,libQt5XmlPatterns5,libQt5Gui5,libQt5Network5,libQt5Core5a") #objdump -p lib/libmeteoio.so | grep NEEDED | tr -s ' ' | cut -d' ' -f3 | tr '\n' ','
SET(CPACK_DEBIAN_PACKAGE_VERSION "${VERSION}")
#SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "i386") #dpkg --print-architecture
IF("${CPACK_ARCH}" STREQUAL "x86_64")
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
......@@ -185,10 +188,12 @@ ELSE(UNIX)
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}")
#Main links (they can get overwritten later)
SET(MENU_LINKS_INISHELL "https://models.slf.ch" "Inishell's home page" )
SET(MENU_LINKS_INISHELL "bin/inishell.exe" "Inishell")
SET(MENU_LINKS_INISHELL_APPS "inishell-apps" "Inishell XML files")
SET(MENU_LINKS_INISHELL_HOME "https://models.slf.ch" "Inishell's home page" )
SET(MENU_LINKS_INISHELL_SRC "https://code.wsl.ch/snow-models/inishell" "Inishell's repository")
SET(CPACK_NSIS_MENU_LINKS ${MENU_LINKS_INISHELL} ${MENU_LINKS_INISHELL_SRC})
SET(CPACK_NSIS_MENU_LINKS ${MENU_LINKS_INISHELL} ${MENU_LINKS_INISHELL_APPS} ${MENU_LINKS_INISHELL_HOME} ${MENU_LINKS_INISHELL_SRC})
#info for the add/uninstall software administration
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_NAME}-${VERSION}")
......
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