Skip to content
Snippets Groups Projects
Commit e42afca4 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Fix OS specific package settings.

parent 9266b63f
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,11 @@ if (WIN32) ...@@ -40,10 +40,11 @@ if (WIN32)
include (packaging/PackagingWin) include (packaging/PackagingWin)
endif() endif()
if(UNIX) if(UNIX)
include (packaging/PackagingLinux) if(APPLE)
endif() include (packaging/PackagingMac)
if(APPLE) else()
include (packaging/PackagingMac) include (packaging/PackagingLinux)
endif()
endif() endif()
# Download additional content # Download additional content
...@@ -115,3 +116,15 @@ else() ...@@ -115,3 +116,15 @@ else()
${CMAKE_CURRENT_BINARY_DIR}/package.sh ${CMAKE_CURRENT_BINARY_DIR}/package.sh
) )
endif() endif()
# Install shared libraries, copied to bin-dir from e.g Conan
foreach(PATTERN "*.dll" "*.dylib")
file(GLOB MATCHED_FILES ${EXECUTABLE_OUTPUT_PATH}/${PATTERN})
# message(STATUS ${MATCHED_FILES})
install(FILES ${MATCHED_FILES} DESTINATION bin)
endforeach()
# macOS frameworks are directories, exclude header files
file(GLOB MATCHED_DIRECTORIES "${EXECUTABLE_OUTPUT_PATH}/*.framework")
install(DIRECTORY ${MATCHED_DIRECTORIES} DESTINATION bin
PATTERN "Headers" EXCLUDE)
set(CPACK_GENERATOR TGZ)
option(OGS_PACK_DMG "package targets creates a .dmg disk image instead of .tar.gz" FALSE) option(OGS_PACK_DMG "package targets creates a .dmg disk image instead of .tar.gz" FALSE)
if(OGS_PACK_DMG) if(OGS_PACK_DMG)
if(NOT OGS_BUILD_GUI) if(NOT OGS_BUILD_GUI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment