diff --git a/CMakeLists.txt b/CMakeLists.txt index 73eaff1d..4ce6f935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/bspinfo/CMakeLists.txt b/bspinfo/CMakeLists.txt index d9540246..d4b0fa8a 100644 --- a/bspinfo/CMakeLists.txt +++ b/bspinfo/CMakeLists.txt @@ -10,3 +10,5 @@ set(BSPINFO_SOURCES ${COMMON_INCLUDES}) add_executable(bspinfo ${BSPINFO_SOURCES}) + +install(TARGETS bspinfo RUNTIME DESTINATION bin) diff --git a/bsputil/CMakeLists.txt b/bsputil/CMakeLists.txt index 2adafc3b..242a16e6 100644 --- a/bsputil/CMakeLists.txt +++ b/bsputil/CMakeLists.txt @@ -10,3 +10,5 @@ set(BSPUTIL_SOURCES ${COMMON_INCLUDES}) add_executable(bsputil ${BSPUTIL_SOURCES}) + +install(TARGETS bsputil RUNTIME DESTINATION bin) diff --git a/light/CMakeLists.txt b/light/CMakeLists.txt index af6e6903..b776909f 100644 --- a/light/CMakeLists.txt +++ b/light/CMakeLists.txt @@ -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) diff --git a/qbsp/CMakeLists.txt b/qbsp/CMakeLists.txt index 6d9df575..40bcd8eb 100644 --- a/qbsp/CMakeLists.txt +++ b/qbsp/CMakeLists.txt @@ -37,3 +37,5 @@ set(QBSP_SOURCES add_definitions(-DDOUBLEVEC_T) add_executable(qbsp ${QBSP_SOURCES}) + +install(TARGETS qbsp RUNTIME DESTINATION bin) diff --git a/vis/CMakeLists.txt b/vis/CMakeLists.txt index 4e907618..7eb99d1e 100644 --- a/vis/CMakeLists.txt +++ b/vis/CMakeLists.txt @@ -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)