Skip to content

Commit

Permalink
Use cpack
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Sep 10, 2019
1 parent 32444fb commit f6c9fbc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ if (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR
message(FATAL_ERROR "CMAKE_BUILD_TYPE must be one of: Debug, Release (current value: '${CMAKE_BUILD_TYPE}')")
endif ()


# build a CPack driven installer package
include(InstallRequiredSystemLibraries)
set(CPACK_GENERATOR "TBZ2")
set(CPACK_STRIP_FILES YES)
set (CPACK_PACKAGE_VERSION_MAJOR "0")
set (CPACK_PACKAGE_VERSION_MINOR "1")
set (CPACK_PACKAGE_VERSION_PATCH "16")
include(CPack)


if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17
CACHE STRING "C++ standard" FORCE)
Expand Down

0 comments on commit f6c9fbc

Please sign in to comment.