Skip to content

Commit

Permalink
Added .deb package creation options for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertLitjens committed Dec 2, 2015
1 parent 016b2e7 commit 59d3266
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,24 @@ ADD_SUBDIRECTORY(buildtools)
IF(PACKAGE_ON_INSTALL)
set(CPACK_PACKAGE_NAME "ASAP")
set(CPACK_PACKAGE_VENDOR "Diagnostic Image Analysis Group")
SET(CPACK_NSIS_DISPLAY_NAME "ASAP 1.4")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "ASAP - Automated Slide Analysis Platform")
set(CPACK_PACKAGE_DESCRIPTION "This package provides viewing and analysis tools for whole slide images.")
set(CPACK_PACKAGE_VERSION "1.4.0")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "4")
set(CPACK_PACKAGE_VERSION_PATCH "0")
IF(WIN32)
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
SET(CPACK_NSIS_DISPLAY_NAME "ASAP 1.4")
set(CPACK_PACKAGE_EXECUTABLES asap "ASAP")
set(CPACK_NSIS_MUI_ICON ${DIAGPathology_SOURCE_DIR}/workstation/application.ico)
set(CPACK_NSIS_MUI_UNIICON ${DIAGPathology_SOURCE_DIR}/workstation/application.ico)
ELSE(WIN32)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Geert Litjens")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "ASAP - Automated Slide Analysis Platform")
set(CPACK_PACKAGING_INSTALL_PREFIX /opt/ASAP)
ENDIF(WIN32)
INCLUDE(CPack)
ENDIF(PACKAGE_ON_INSTALL)
8 changes: 5 additions & 3 deletions buildtools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
IF(WIN32 AND PACKAGE_ON_INSTALL)
IF(PACKAGE_ON_INSTALL)
IF(WIN32)
SET(APPS "\${CMAKE_INSTALL_PREFIX}/bin/ASAP.exe")
SET(APPS_DEBUG "\${CMAKE_INSTALL_PREFIX}/bin/ASAP_d.exe")
SET(LIBS "\${CMAKE_INSTALL_PREFIX}/bin/libEGL.dll" "\${CMAKE_INSTALL_PREFIX}/bin/Qt5OpenGL.dll" "\${CMAKE_INSTALL_PREFIX}/bin/plugins/filters/NucleiDetectionFilterPlugin.dll")
Expand All @@ -24,5 +25,6 @@ IF(WIN32 AND PACKAGE_ON_INSTALL)
else()
fixup_bundle(\"${APPS}\" \"${LIBS}\" \"${DIRS}\")
endif()
")
ENDIF(WIN32 AND PACKAGE_ON_INSTALL)
")
ENDIF(WIN32)
ENDIF(PACKAGE_ON_INSTALL)

0 comments on commit 59d3266

Please sign in to comment.