build: setup CPack to package binaries in a zip file
This commit is contained in:
parent
b823032ee8
commit
99d5a4d4f9
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -10,3 +10,5 @@ set(BSPINFO_SOURCES
|
|||
${COMMON_INCLUDES})
|
||||
|
||||
add_executable(bspinfo ${BSPINFO_SOURCES})
|
||||
|
||||
install(TARGETS bspinfo RUNTIME DESTINATION bin)
|
||||
|
|
|
|||
|
|
@ -10,3 +10,5 @@ set(BSPUTIL_SOURCES
|
|||
${COMMON_INCLUDES})
|
||||
|
||||
add_executable(bsputil ${BSPUTIL_SOURCES})
|
||||
|
||||
install(TARGETS bsputil RUNTIME DESTINATION bin)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -37,3 +37,5 @@ set(QBSP_SOURCES
|
|||
add_definitions(-DDOUBLEVEC_T)
|
||||
|
||||
add_executable(qbsp ${QBSP_SOURCES})
|
||||
|
||||
install(TARGETS qbsp RUNTIME DESTINATION bin)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue