forked from xsacha/SpatiaLiteCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.cmake
34 lines (27 loc) · 1.21 KB
/
package.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
# ==================================================
# Defines CPack properties for SpatiaLiteC++ installer
# --------------------------------------------------
SET(CPACK_PACKAGE_NAME "SpatiaLiteCpp")
SET(CPACK_PACKAGE_VENDOR "dpmcmlxxvi")
SET(CPACK_PACKAGE_CONTACT "[email protected]")
# Version needs to be populated by the build process
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
# This is a hack to add build type to installer name since
# CPACK_SYSTEM_NAME is not available at compile time.
SET(build_suffix ${CMAKE_BUILD_TYPE})
IF(BUILD_TYPE)
SET(build_suffix ${BUILD_TYPE})
ENDIF()
SET(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}-${build_suffix}")
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}")
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.${CPACK_PACKAGE_VERSION_MINOR}")
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"SpatiaLiteC++ is a C++ wrapper for the SpatiaLite library to provide RAII management.")
SET(CPACK_GENERATOR
"ZIP"
"TGZ")
INCLUDE(CPack)