WSL/SLF GitLab Repository

Commit 40870cf3 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Better handling of the MeteoIO packaging

parent 747b48fd
......@@ -131,17 +131,20 @@ ENDIF(WIN32)
###########################################################
## CPACK section
###########################################################
#bundle MeteoIO
FIND_PACKAGE(MeteoIO REQUIRED)
SET(ALL_RX_PERM OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
FILE(GLOB meteoio_libs "${METEOIO_ROOT}/lib/libmeteo*.${DLL_EXT}")
IF(WIN32)
INSTALL(FILES ${meteoio_libs} DESTINATION bin COMPONENT meteoio)
ELSE(WIN32)
INSTALL(FILES ${meteoio_libs} DESTINATION lib COMPONENT meteoio)
ENDIF(WIN32)
FILE(GLOB meteoio_bins "${METEOIO_ROOT}/bin/meteoio_timeserie*")
INSTALL(FILES ${meteoio_bins} DESTINATION bin PERMISSIONS ${ALL_RX_PERM} COMPONENT meteoio)
SET(CPACK_BUNDLE_METEOIO ON CACHE BOOL "Pack a MeteoIO converter application")
IF(CPACK_BUNDLE_METEOIO)
#bundle MeteoIO
FIND_PACKAGE(MeteoIO REQUIRED)
SET(ALL_RX_PERM OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
FILE(GLOB meteoio_libs "${METEOIO_ROOT}/lib/libmeteo*.${DLL_EXT}")
IF(WIN32)
INSTALL(FILES ${meteoio_libs} DESTINATION bin COMPONENT meteoio)
ELSE(WIN32)
INSTALL(FILES ${meteoio_libs} DESTINATION lib COMPONENT meteoio)
ENDIF(WIN32)
FILE(GLOB meteoio_bins "${METEOIO_ROOT}/bin/meteoio_timeserie*")
INSTALL(FILES ${meteoio_bins} DESTINATION bin PERMISSIONS ${ALL_RX_PERM} COMPONENT meteoio)
ENDIF(CPACK_BUNDLE_METEOIO)
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")
......@@ -165,12 +168,15 @@ SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${VERSION}-${CPACK_ARCH}")
#installation by components for formats that support it
#SET(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE 1)
SET(CPACK_COMPONENTS_ALL exe resources meteoio)
SET(CPACK_COMPONENT_RESOURCES_DISPLAY_NAME "Inishell resources")
SET(CPACK_COMPONENT_RESOURCES_DESCRIPTION "Additional files to use Inishell")
SET(CPACK_COMPONENT_EXE_DISPLAY_NAME "Inishell application")
SET(CPACK_COMPONENT_EXE_DESCRIPTION "The Inishell applications itself with what it needs to run")
SET(CPACK_COMPONENT_METEOIO_DISPLAY_NAME "MeteoIO converter application")
SET(CPACK_COMPONENT_METEOIO_DESCRIPTION "A MeteoIO based application to read/convert/output timeseries")
SET(CPACK_COMPONENT_EXE_REQUIRED ON)
SET(CPACK_COMPONENT_RESOURCES_DISPLAY_NAME "Inishell resources")
SET(CPACK_COMPONENT_RESOURCES_DESCRIPTION "Additional files to use Inishell")
IF(CPACK_BUNDLE_METEOIO)
SET(CPACK_COMPONENT_METEOIO_DISPLAY_NAME "MeteoIO converter application")
SET(CPACK_COMPONENT_METEOIO_DESCRIPTION "A MeteoIO based application to read/convert/output timeseries")
ENDIF(CPACK_BUNDLE_METEOIO)
IF(UNIX)
IF(APPLE) #OsX packages: IMG
......
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