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)
include (packaging/PackagingWin)
endif()
if(UNIX)
include (packaging/PackagingLinux)
endif()
if(APPLE)
include (packaging/PackagingMac)
if(APPLE)
include (packaging/PackagingMac)
else()
include (packaging/PackagingLinux)
endif()
endif()
# Download additional content
......@@ -115,3 +116,15 @@ else()
${CMAKE_CURRENT_BINARY_DIR}/package.sh
)
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)
if(OGS_PACK_DMG)
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