Skip to content

Commit

Permalink
Adding rudimentary package generation, only works on Mac OSX for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jansegre committed Sep 26, 2012
1 parent aac5a26 commit 91196f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,14 @@ if(BUILD_CLIENTS)
add_subdirectory(clients/qt)
endif()

option(BUILD_PACKAGE "Generate a target to build a grSim package?" OFF)
if(BUILD_PACKAGE)
install(TARGETS ${app} DESTINATION .)
set(CPACK_PACKAGE_CONTACT "Jan Segre <[email protected]>")
if(APPLE)
set(CPACK_GENERATOR "DragNDrop")
endif()
include(CPack)
endif()


0 comments on commit 91196f0

Please sign in to comment.