From 1db4c0685cf0185b9f0f7c3bfe486dd868355130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 11 Oct 2011 08:44:53 +0000 Subject: [PATCH] Test documentation shortcut from istaller git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@439 fdac6126-5c0c-442c-9429-916003d36597 --- cmake/OpenMeshPackage.cmake | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/cmake/OpenMeshPackage.cmake b/cmake/OpenMeshPackage.cmake index fef1bfae..28b25806 100644 --- a/cmake/OpenMeshPackage.cmake +++ b/cmake/OpenMeshPackage.cmake @@ -23,8 +23,6 @@ set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}") set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") set (CPACK_SOURCE_STRIP_FILES "") -# set (CPACK_STRIP_FILES "bin/OpenFlipper") - # source package generation set (CPACK_SOURCE_GENERATOR "TGZ;TBZ2;ZIP") @@ -119,25 +117,22 @@ if (WIN32) endif() # copy the glut library if it exists on windows - IF ( WIN32) - if (EXISTS ${CMAKE_BINARY_DIR}/Build/glut32.dll) - install(FILES ${CMAKE_BINARY_DIR}/Build/glut32.dll - DESTINATION ./ - COMPONENT Applications + if (EXISTS ${CMAKE_BINARY_DIR}/Build/glut32.dll) + install(FILES ${CMAKE_BINARY_DIR}/Build/glut32.dll + DESTINATION ./ + COMPONENT Applications ) - endif() endif() - # copy the documentation if it exists - IF ( WIN32 ) - if (EXISTS ${CMAKE_BINARY_DIR}/Build/Doc) - install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/Doc - DESTINATION ./ + # copy the documentation if it exists + if (EXISTS ${CMAKE_BINARY_DIR}/Build/Doc) + install(DIRECTORY ${CMAKE_BINARY_DIR}/Build/Doc + DESTINATION ./ COMPONENT Applications - ) - endif() - endif() + ) + endif() + set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "CreateShortcut \\\"$SMPROGRAMS\\\\${CPACK_NSIS_DISPLAY_NAME}\\\\Documentation.lnk\\\" \\\"$INSTDIR\\\\Doc\\\\html\\\\index.html \\\" " ) # append dll's to installed package #if (EXISTS ${CMAKE_SOURCE_DIR}/WIN) -- GitLab