forked from GENIVI/CANdevStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackaging.cmake
More file actions
28 lines (20 loc) · 868 Bytes
/
packaging.cmake
File metadata and controls
28 lines (20 loc) · 868 Bytes
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
# Package generation
set(CPACK_PACKAGE_DESCRIPTION "CANDevStudio - CAN simulation software")
set(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
set(VERSION_STRING "${VERSION_PATCH}")
if(GIT_COMMIT_HASH)
set(VERSION_STRING "${VERSION_PATCH}.${GIT_COMMIT_HASH}")
endif()
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_STRING}-${CMAKE_SYSTEM_NAME}")
if(STANDALONE)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-standalone")
endif()
set(CPACK_PACKAGE_VENDOR "Remigiusz Kołłątaj")
set(CPACK_PACKAGE_CONTACT "remigiusz.kollataj@gmail.com")
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
if(APPLE)
include("${CMAKE_SOURCE_DIR}/cmake/osx_bundle.cmake")
endif()
include(CPack)