From fa54c8aa201fca5e0770e289080e180453846804 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 2 Jun 2011 14:48:38 +0100 Subject: [PATCH] Generate a .dmg package on Mac OS X. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fd53c7..aed8dd4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,7 +279,7 @@ elseif (APPLE) target_link_libraries (cgltrace dl) - install (TARGETS cgltrace LIBRARY DESTINATION lib) + install (TARGETS cgltrace LIBRARY DESTINATION wrappers) else () include_directories (${X11_INCLUDE_DIR}) @@ -390,10 +390,13 @@ execute_process ( OUTPUT_VARIABLE CPACK_PACKAGE_VERSION_PATCH ) +# See http://www.vtk.org/Wiki/CMake:CPackPackageGenerators if (WIN32) set (CPACK_GENERATOR "ZIP") -else (WIN32) +elseif (APPLE) + set (CPACK_GENERATOR "DragNDrop") +else () set (CPACK_GENERATOR "TGZ") -endif (WIN32) +endif () include(CPack) -- 2.7.4