build: setup CPack to package binaries in a zip file

This commit is contained in:
Eric Wasylishen 2015-12-09 16:23:36 -08:00
parent b823032ee8
commit 99d5a4d4f9
6 changed files with 17 additions and 0 deletions

View File

@ -57,3 +57,10 @@ add_subdirectory(bsputil)
add_subdirectory(light)
add_subdirectory(qbsp)
add_subdirectory(vis)
#CPack configuration
set(CPACK_GENERATOR ZIP)
set(CPACK_PACKAGE_NAME tyrutils)
set(CPACK_PACKAGE_VERSION ${GIT_DESCRIBE})
include(CPack)

View File

@ -10,3 +10,5 @@ set(BSPINFO_SOURCES
${COMMON_INCLUDES})
add_executable(bspinfo ${BSPINFO_SOURCES})
install(TARGETS bspinfo RUNTIME DESTINATION bin)

View File

@ -10,3 +10,5 @@ set(BSPUTIL_SOURCES
${COMMON_INCLUDES})
add_executable(bsputil ${BSPUTIL_SOURCES})
install(TARGETS bsputil RUNTIME DESTINATION bin)

View File

@ -22,3 +22,5 @@ set(LIGHT_SOURCES
add_executable(light ${LIGHT_SOURCES})
target_link_libraries (light ${CMAKE_THREAD_LIBS_INIT})
install(TARGETS light RUNTIME DESTINATION bin)

View File

@ -37,3 +37,5 @@ set(QBSP_SOURCES
add_definitions(-DDOUBLEVEC_T)
add_executable(qbsp ${QBSP_SOURCES})
install(TARGETS qbsp RUNTIME DESTINATION bin)

View File

@ -20,3 +20,5 @@ set(VIS_SOURCES
add_executable(vis ${VIS_SOURCES})
target_link_libraries (vis ${CMAKE_THREAD_LIBS_INIT})
install(TARGETS vis RUNTIME DESTINATION bin)