Commit 417ba214 authored by saubatn's avatar saubatn
Browse files

FIXED : reformat source (tabs replaced by 3 spaces).

FIXED : Added DLL dependencies for MinGW.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@351 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 06dc928c
......@@ -83,196 +83,261 @@ ${CPACK_SOURCE_IGNORE_FILES}
# Debian packages
# ----------------
if (UNIX AND NOT WIN32)
message(STATUS "Packaging CamiTK for UNIX systems")
# Try to find architecture
execute_process(COMMAND uname -m OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
string(STRIP "${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_ARCHITECTURE)
# Try to find distro name and distro-specific arch
execute_process(COMMAND lsb_release -is OUTPUT_VARIABLE LSB_ID)
execute_process(COMMAND lsb_release -rs OUTPUT_VARIABLE LSB_RELEASE)
string(STRIP "${LSB_ID}" LSB_ID)
string(STRIP "${LSB_RELEASE}" LSB_RELEASE)
set(LSB_DISTRIB "${LSB_ID}${LSB_RELEASE}")
if(NOT LSB_DISTRIB)
set(LSB_DISTRIB "unix")
endif(NOT LSB_DISTRIB)
message(STATUS "Packager architecture : ${LSB_DISTRIB}")
#Find DPKG
find_program(DPKG
NAMES dpkg-deb
PATHS "/usr/bin" #Add paths here
)
if ( DPKG )
get_filename_component(DPKG_PATH ${DPKG} ABSOLUTE)
message(STATUS "Packaging deb using ${DPKG_PATH}: OK")
set(DPKG_FOUND "YES")
else()
set(DPKG_FOUND "NO")
endif()
# For Debian-based distribs we want to create DEB packages.
if("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
# We need to alter the architecture names as per distro rules
if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
set(CPACK_PACKAGE_ARCHITECTURE i386)
endif()
if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
set(CPACK_PACKAGE_ARCHITECTURE amd64)
endif()
# Set the dependencies based on the distrib version
# Installation path
# Set the install location to "/usr"
# PLEASE, set the CamiTK install root path in your CMake command line / GUI (and not directly here)
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr")
set(CPACK_SET_DESTDIR TRUE)
# Dependencies depending on the Operating System.
# Ubuntu11.10
if("${LSB_DISTRIB}" MATCHES "Ubuntu11.10")
message(STATUS "Packaging CamiTK for UNIX systems")
# Try to find architecture
execute_process(COMMAND uname -m OUTPUT_VARIABLE CPACK_PACKAGE_ARCHITECTURE)
string(STRIP "${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_ARCHITECTURE)
# Try to find distro name and distro-specific arch
execute_process(COMMAND lsb_release -is OUTPUT_VARIABLE LSB_ID)
execute_process(COMMAND lsb_release -rs OUTPUT_VARIABLE LSB_RELEASE)
string(STRIP "${LSB_ID}" LSB_ID)
string(STRIP "${LSB_RELEASE}" LSB_RELEASE)
set(LSB_DISTRIB "${LSB_ID}${LSB_RELEASE}")
if(NOT LSB_DISTRIB)
set(LSB_DISTRIB "unix")
endif(NOT LSB_DISTRIB)
message(STATUS "Packager architecture : ${LSB_DISTRIB}")
#Find DPKG
find_program(DPKG
NAMES dpkg-deb
PATHS "/usr/bin" #Add paths here
)
if ( DPKG )
get_filename_component(DPKG_PATH ${DPKG} ABSOLUTE)
message(STATUS "Packaging deb using ${DPKG_PATH}: OK")
set(DPKG_FOUND "YES")
else()
set(DPKG_FOUND "NO")
endif()
# For Debian-based distribs we want to create DEB packages.
if("${LSB_DISTRIB}" MATCHES "Ubuntu|Debian")
# We need to alter the architecture names as per distro rules
if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "i[3-6]86")
set(CPACK_PACKAGE_ARCHITECTURE i386)
endif()
if("${CPACK_PACKAGE_ARCHITECTURE}" MATCHES "x86_64")
set(CPACK_PACKAGE_ARCHITECTURE amd64)
endif()
# Set the dependencies based on the distrib version
# Installation path
# Set the install location to "/usr"
# PLEASE, set the CamiTK install root path in your CMake command line / GUI (and not directly here)
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr")
set(CPACK_SET_DESTDIR TRUE)
# Dependencies depending on the Operating System.
# Ubuntu11.10
if("${LSB_DISTRIB}" MATCHES "Ubuntu11.10")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-dev, libinsighttoolkit3.20, libxml2, libvtk5.6-qt4, libxerces-c3.1 ")
endif()
# For Ubuntu12.xx
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.04")
endif()
# For Ubuntu12.xx
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.04")
set(LSB_DISTRIB "Ubuntu12.xx")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-dev, libinsighttoolkit3.20, libxml2, libvtk5.8-qt4, libxerces-c3.1 ")
endif()
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.04.1")
endif()
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.04.1")
set(LSB_DISTRIB "Ubuntu12.xx")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-dev, libinsighttoolkit3.20, libxml2, libvtk5.8-qt4, libxerces-c3.1 ")
endif()
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.10")
if("${LSB_DISTRIB}" MATCHES "Ubuntu12.10")
set(LSB_DISTRIB "Ubuntu12.xx")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-dev, libinsighttoolkit3.20, libxml2, libvtk5.8-qt4, libxerces-c3.1 ")
endif()
# TODO Debian dependencies
# if("${LSB_DISTRIB}" MATCHES "Debian5.*")
# set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libsqlite3-0, libglade2-0, libgegl-0.0-0, libcairo2, libexiv2-5, liblcms1, libjpeg62, libpng12-0, liblensfun0, liblensfun-data")
# TODO Debian dependencies
# if("${LSB_DISTRIB}" MATCHES "Debian5.*")
# set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libsqlite3-0, libglade2-0, libgegl-0.0-0, libcairo2, libexiv2-5, liblcms1, libjpeg62, libpng12-0, liblensfun0, liblensfun-data")
#
# endif("${LSB_DISTRIB}" MATCHES "Debian5.*")
# if("${LSB_DISTRIB}" MATCHES "Debiantesting")
# set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libsqlite3-0, libglade2-0, libgegl-0.0-0, libcairo2, libexiv2-5, liblcms1, libjpeg62, libpng12-0, liblensfun0, liblensfun-data")
# endif("${LSB_DISTRIB}" MATCHES "Debiantesting")
# endif("${LSB_DISTRIB}" MATCHES "Debian5.*")
# if("${LSB_DISTRIB}" MATCHES "Debiantesting")
# set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk2.0-0, libsqlite3-0, libglade2-0, libgegl-0.0-0, libcairo2, libexiv2-5, liblcms1, libjpeg62, libpng12-0, liblensfun0, liblensfun-data")
# endif("${LSB_DISTRIB}" MATCHES "Debiantesting")
if(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
if(NOT CPACK_DEBIAN_PACKAGE_DEPENDS)
message(STATUS "Packaging for ${LSB_DISTRIB} not supported yet.\n")
endif()
endif()
endif()
endif()
# package name
string(TOLOWER "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CAMITK_VER_NICKNAME}-${LSB_DISTRIB}_${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_FILE_NAME)
message(STATUS "CPACK_PACKAGE_FILE_NAME = ${CPACK_PACKAGE_FILE_NAME}")
# package name
string(TOLOWER "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CAMITK_VER_NICKNAME}-${LSB_DISTRIB}_${CPACK_PACKAGE_ARCHITECTURE}" CPACK_PACKAGE_FILE_NAME)
message(STATUS "CPACK_PACKAGE_FILE_NAME = ${CPACK_PACKAGE_FILE_NAME}")
endif()
if(WIN32 AND NOT UNIX)
# -----------------------
# NSIS Windows installer
# -----------------------
# Update package name for windows release
set(LSB_DISTRIB "win32")
set(CPACK_PACKAGE_ARCHITECTURE i386)
string(TOLOWER "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CAMITK_VER_NICKNAME}-${LSB_DISTRIB}" CPACK_PACKAGE_FILE_NAME)
# Try to find Makensis on Linux distribution
find_program(MAKENSIS
NAMES makensis
PATHS "/usr/bin"
)
if(MAKENSIS)
# NSIS Windows installer
message(STATUS "Packaging nsis using ${MAKENSIS}")
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
##TODO use GetPrerequisites.cmake (i.e. find a better way to list dependencies)
##get_prerequisites() is not well enough documented to justify the time investement - EP May 2011
${QT_BINARY_DIR}/QtCore4.dll
${QT_BINARY_DIR}/QtGui4.dll
${QT_BINARY_DIR}/QtSvg4.dll
${QT_BINARY_DIR}/QtXml4.dll
${QT_BINARY_DIR}/QtNetwork4.dll
${QT_BINARY_DIR}/QtSql4.dll
${QT_BINARY_DIR}/QtWebKit4.dll
${VTK_LIBRARY_DIRS}/Release/QVTK.dll
${VTK_LIBRARY_DIRS}/Release/vtkCommon.dll
${VTK_LIBRARY_DIRS}/Release/vtksys.dll
${VTK_LIBRARY_DIRS}/Release/vtkFiltering.dll
${VTK_LIBRARY_DIRS}/Release/vtkGraphics.dll
${VTK_LIBRARY_DIRS}/Release/vtkHybrid.dll
${VTK_LIBRARY_DIRS}/Release/vtkIO.dll
${VTK_LIBRARY_DIRS}/Release/vtkImaging.dll
${VTK_LIBRARY_DIRS}/Release/vtkRendering.dll
${VTK_LIBRARY_DIRS}/Release/vtkVolumeRendering.dll
${VTK_LIBRARY_DIRS}/Release/vtkverdict.dll
${VTK_LIBRARY_DIRS}/Release/vtkDICOMParser.dll
${VTK_LIBRARY_DIRS}/Release/vtkNetCDF.dll
${VTK_LIBRARY_DIRS}/Release/vtkNetCDF_cxx.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkmesh.dll
${VTK_LIBRARY_DIRS}/Release/vtkexpat.dll
${VTK_LIBRARY_DIRS}/Release/vtkjpeg.dll
${VTK_LIBRARY_DIRS}/Release/vtkmetaio.dll
${VTK_LIBRARY_DIRS}/Release/vtkpng.dll
${VTK_LIBRARY_DIRS}/Release/vtktiff.dll
${VTK_LIBRARY_DIRS}/Release/vtkzlib.dll
${VTK_LIBRARY_DIRS}/Release/vtkInfovis.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkQtChart.dll
${VTK_LIBRARY_DIRS}/Release/vtkfreetype.dll
${VTK_LIBRARY_DIRS}/Release/vtkftgl.dll
${VTK_LIBRARY_DIRS}/Release/vtkalglib.dll
${VTK_LIBRARY_DIRS}/Release/vtklibxml2.dll
${VTK_LIBRARY_DIRS}/Release/vtkViews.dll
${VTK_LIBRARY_DIRS}/Release/vtkexoIIc.dll
${VTK_LIBRARY_DIRS}/Release/vtkWidgets.dll
# Wizard dependencies
${XERCESC_ROOT_DIR}/bin/xerces-c_3_1.dll
# Libxml2 dependencies
${LIBXML2_INCLUDE_DIR}/../bin/iconv.dll
${LIBXML2_INCLUDE_DIR}/../bin/libxml2.dll
${LIBXML2_INCLUDE_DIR}/../bin/zlib1.dll
)
##ITK is required
# FIND_PACKAGE(ITK)
if (${ITK_FOUND})
message(pass ${VTK_LIBRARY_DIRS})
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${ITK_DIR}/bin/Release/ITKCommon.dll)
endif ()
# Application icon
set(CAMITK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}\\\\core\\\\resources\\\\appIcon.ico") #set here the current icon for CamiTK
set(CPACK_PACKAGE_ICON ${CAMITK_PACKAGE_ICON}) #icon for the top bar NSIS installer
set(CPACK_NSIS_MUI_ICON ${CAMITK_PACKAGE_ICON}) #icon for the generated install program (the .exe to run to install CamiTK).
set(CPACK_NSIS_MUI_UNIICON ${CAMITK_PACKAGE_ICON}) #icon for the generated uninstall program (the .exe to run to uninstall CamiTK).
# Create desktop icons, by forcing CPack to build an internal command, as 'set(CPACK_NSIS_MODIFY_PATH ON)' option setted in the additional page doesn't work.
# -----------------------
# NSIS Windows installer
# -----------------------
# Update package name for windows release
set(LSB_DISTRIB "win32")
set(CPACK_PACKAGE_ARCHITECTURE i386)
string(TOLOWER "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CAMITK_VER_NICKNAME}-${LSB_DISTRIB}" CPACK_PACKAGE_FILE_NAME)
# Try to find Makensis on Linux distribution
find_program(MAKENSIS
NAMES makensis
PATHS "/usr/bin"
)
if(MAKENSIS)
# NSIS Windows installer
message(STATUS "Packaging nsis using ${MAKENSIS}")
# MinGW compiler
if (CMAKE_CXX_COMPILER)
{
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
##TODO use GetPrerequisites.cmake (i.e. find a better way to list dependencies)
##get_prerequisites() is not well enough documented to justify the time investement - EP May 2011
${QT_BINARY_DIR}/QtCore4.dll
${QT_BINARY_DIR}/QtGui4.dll
${QT_BINARY_DIR}/QtSvg4.dll
${QT_BINARY_DIR}/QtXml4.dll
${QT_BINARY_DIR}/QtNetwork4.dll
${QT_BINARY_DIR}/QtSql4.dll
${QT_BINARY_DIR}/QtWebKit4.dll
${VTK_LIBRARY_DIRS}/libQVTK.dll
${VTK_LIBRARY_DIRS}/libvtkCommon.dll
${VTK_LIBRARY_DIRS}/libvtksys.dll
${VTK_LIBRARY_DIRS}/libvtkFiltering.dll
${VTK_LIBRARY_DIRS}/libvtkGraphics.dll
${VTK_LIBRARY_DIRS}/libvtkHybrid.dll
${VTK_LIBRARY_DIRS}/libvtkIO.dll
${VTK_LIBRARY_DIRS}/libvtkImaging.dll
${VTK_LIBRARY_DIRS}/libvtkRendering.dll
${VTK_LIBRARY_DIRS}/libvtkVolumeRendering.dll
${VTK_LIBRARY_DIRS}/libvtkverdict.dll
${VTK_LIBRARY_DIRS}/libvtkDICOMParser.dll
${VTK_LIBRARY_DIRS}/libvtkNetCDF.dll
${VTK_LIBRARY_DIRS}/libvtkNetCDF_cxx.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkmesh.dll
${VTK_LIBRARY_DIRS}/libvtkexpat.dll
${VTK_LIBRARY_DIRS}/libvtkjpeg.dll
${VTK_LIBRARY_DIRS}/libvtkmetaio.dll
${VTK_LIBRARY_DIRS}/libvtkpng.dll
${VTK_LIBRARY_DIRS}/libvtktiff.dll
${VTK_LIBRARY_DIRS}/libvtkzlib.dll
${VTK_LIBRARY_DIRS}/libvtkInfovis.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkQtChart.dll
${VTK_LIBRARY_DIRS}/libvtkfreetype.dll
${VTK_LIBRARY_DIRS}/libvtkftgl.dll
${VTK_LIBRARY_DIRS}/libvtkalglib.dll
${VTK_LIBRARY_DIRS}/libvtklibxml2.dll
${VTK_LIBRARY_DIRS}/libvtkViews.dll
${VTK_LIBRARY_DIRS}/libvtkexoIIc.dll
${VTK_LIBRARY_DIRS}/libvtkWidgets.dll
# Wizard dependencies
${XERCESC_ROOT_DIR}/bin/xerces-c_3_1.dll
# Libxml2 dependencies
${LIBXML2_INCLUDE_DIR}/../bin/iconv.dll
${LIBXML2_INCLUDE_DIR}/../bin/libxml2.dll
${LIBXML2_INCLUDE_DIR}/../bin/zlib1.dll
)
##ITK is required
# FIND_PACKAGE(ITK)
if (${ITK_FOUND})
message(pass ${VTK_LIBRARY_DIRS})
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${ITK_DIR}/bin/libITKCommon.dll)
endif ()
}
# MSVC compiler
if (NOT CMAKE_CXX_COMPILER)
{
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
##TODO use GetPrerequisites.cmake (i.e. find a better way to list dependencies)
##get_prerequisites() is not well enough documented to justify the time investement - EP May 2011
${QT_BINARY_DIR}/QtCore4.dll
${QT_BINARY_DIR}/QtGui4.dll
${QT_BINARY_DIR}/QtSvg4.dll
${QT_BINARY_DIR}/QtXml4.dll
${QT_BINARY_DIR}/QtNetwork4.dll
${QT_BINARY_DIR}/QtSql4.dll
${QT_BINARY_DIR}/QtWebKit4.dll
${VTK_LIBRARY_DIRS}/Release/QVTK.dll
${VTK_LIBRARY_DIRS}/Release/vtkCommon.dll
${VTK_LIBRARY_DIRS}/Release/vtksys.dll
${VTK_LIBRARY_DIRS}/Release/vtkFiltering.dll
${VTK_LIBRARY_DIRS}/Release/vtkGraphics.dll
${VTK_LIBRARY_DIRS}/Release/vtkHybrid.dll
${VTK_LIBRARY_DIRS}/Release/vtkIO.dll
${VTK_LIBRARY_DIRS}/Release/vtkImaging.dll
${VTK_LIBRARY_DIRS}/Release/vtkRendering.dll
${VTK_LIBRARY_DIRS}/Release/vtkVolumeRendering.dll
${VTK_LIBRARY_DIRS}/Release/vtkverdict.dll
${VTK_LIBRARY_DIRS}/Release/vtkDICOMParser.dll
${VTK_LIBRARY_DIRS}/Release/vtkNetCDF.dll
${VTK_LIBRARY_DIRS}/Release/vtkNetCDF_cxx.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkmesh.dll
${VTK_LIBRARY_DIRS}/Release/vtkexpat.dll
${VTK_LIBRARY_DIRS}/Release/vtkjpeg.dll
${VTK_LIBRARY_DIRS}/Release/vtkmetaio.dll
${VTK_LIBRARY_DIRS}/Release/vtkpng.dll
${VTK_LIBRARY_DIRS}/Release/vtktiff.dll
${VTK_LIBRARY_DIRS}/Release/vtkzlib.dll
${VTK_LIBRARY_DIRS}/Release/vtkInfovis.dll
# ${VTK_LIBRARY_DIRS}/Release/vtkQtChart.dll
${VTK_LIBRARY_DIRS}/Release/vtkfreetype.dll
${VTK_LIBRARY_DIRS}/Release/vtkftgl.dll
${VTK_LIBRARY_DIRS}/Release/vtkalglib.dll
${VTK_LIBRARY_DIRS}/Release/vtklibxml2.dll
${VTK_LIBRARY_DIRS}/Release/vtkViews.dll
${VTK_LIBRARY_DIRS}/Release/vtkexoIIc.dll
${VTK_LIBRARY_DIRS}/Release/vtkWidgets.dll
# Wizard dependencies
${XERCESC_ROOT_DIR}/bin/xerces-c_3_1.dll
# Libxml2 dependencies
${LIBXML2_INCLUDE_DIR}/../bin/iconv.dll
${LIBXML2_INCLUDE_DIR}/../bin/libxml2.dll
${LIBXML2_INCLUDE_DIR}/../bin/zlib1.dll
)
##ITK is required
# FIND_PACKAGE(ITK)
if (${ITK_FOUND})
message(pass ${VTK_LIBRARY_DIRS})
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} ${ITK_DIR}/bin/Release/ITKCommon.dll)
endif ()
}
# Application icon
set(CAMITK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}\\\\core\\\\resources\\\\appIcon.ico") #set here the current icon for CamiTK
set(CPACK_PACKAGE_ICON ${CAMITK_PACKAGE_ICON}) #icon for the top bar NSIS installer
set(CPACK_NSIS_MUI_ICON ${CAMITK_PACKAGE_ICON}) #icon for the generated install program (the .exe to run to install CamiTK).
set(CPACK_NSIS_MUI_UNIICON ${CAMITK_PACKAGE_ICON}) #icon for the generated uninstall program (the .exe to run to uninstall CamiTK).
# Create desktop icons, by forcing CPack to build an internal command, as 'set(CPACK_NSIS_MODIFY_PATH ON)' option setted in the additional page doesn't work.
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateShortCut \\\"$DESKTOP\\\\${CAMITK_PROJECT_NAME}-imp.lnk\\\" \\\"$INSTDIR\\\\bin\\\\imp.exe\\\"")
# Tell CPack to remove the icons after uninstalling
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete \\\"$DESKTOP\\\\${CAMITK_PROJECT_NAME}-imp.lnk\\\"")
# Installer name
set(CPACK_NSIS_DISPLAY_NAME "CamiTK ${CAMITK_VER_MAJ}.${CAMITK_VER_MIN}.${CAMITK_VER_PACKAGE_PAT}")
set(CPACK_NSIS_INSTALLED_ICON_NAME ${CAMITK_PROJECT_NAME})
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CAMITK_PROJECT_NAME})
set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\camitk.imag.fr")
set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\camitk.imag.fr")
set(CPACK_NSIS_CONTACT ${CPACK_PACKAGE_CONTACT})
include(InstallRequiredSystemLibraries)
else()
message(STATUS "Can not find makensis: nsis packaging is not possible")
endif()
# Tell CPack to remove the icons after uninstalling
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "Delete \\\"$DESKTOP\\\\${CAMITK_PROJECT_NAME}-imp.lnk\\\"")
# Installer name
set(CPACK_NSIS_DISPLAY_NAME "CamiTK ${CAMITK_VER_MAJ}.${CAMITK_VER_MIN}.${CAMITK_VER_PACKAGE_PAT}")
set(CPACK_NSIS_INSTALLED_ICON_NAME ${CAMITK_PROJECT_NAME})
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CAMITK_PROJECT_NAME})
set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\camitk.imag.fr")
set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\camitk.imag.fr")
set(CPACK_NSIS_CONTACT ${CPACK_PACKAGE_CONTACT})
include(InstallRequiredSystemLibraries)
else()
message(STATUS "Can not find makensis: nsis packaging is not possible")
endif()
endif()
......
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