]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Generate a .dmg package on Mac OS X.
[apitrace] / CMakeLists.txt
index 96967462a69741ed6943d6194d82569b1f9c3bbf..aed8dd4c5ebed7286a7642f13be41c076e42e792 100755 (executable)
@@ -163,7 +163,7 @@ else (WIN32)
     set (glws glws_glx.cpp)
 endif (WIN32)
 
-add_library (trace trace_model.cpp trace_parser.cpp trace_writer.cpp ${os})
+add_library (trace trace_model.cpp trace_parser.cpp trace_writer.cpp trace_model_writer.cpp ${os})
 
 add_executable (tracedump tracedump.cpp)
 target_link_libraries (tracedump trace)
@@ -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)