mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-22 07:20:15 +03:00
use cpack to provide package build target
This commit is contained in:
parent
d75bdb8ec0
commit
12ed71250a
@ -31,10 +31,8 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions (-DNDEBUG)
|
||||
endif()
|
||||
|
||||
#
|
||||
# Barrier version
|
||||
#
|
||||
include (cmake/Version.cmake)
|
||||
include (cmake/Package.cmake)
|
||||
|
||||
# TODO: Find out why we need these, and remove them
|
||||
if (COMMAND cmake_policy)
|
||||
|
7
cmake/Package.cmake
Normal file
7
cmake/Package.cmake
Normal 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()
|
Loading…
Reference in New Issue
Block a user