use cpack to provide package build target

This commit is contained in:
walker0643
2018-03-19 13:16:06 -04:00
parent d75bdb8ec0
commit 12ed71250a
2 changed files with 8 additions and 3 deletions

7
cmake/Package.cmake Normal file
View File

@@ -0,0 +1,7 @@
if (UNIX)
set (CPACK_PACKAGE_VERSION_MAJOR ${BARRIER_VERSION_MAJOR})
set (CPACK_PACKAGE_VERSION_MINOR ${BARRIER_VERSION_MINOR})
set (CPACK_PACKAGE_VERSION_PATCH ${BARRIER_VERSION_PATCH})
set (CPACK_GENERATOR "TBZ2")
include (CPack)
endif()