-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpack.cmake
More file actions
57 lines (48 loc) · 2.46 KB
/
cpack.cmake
File metadata and controls
57 lines (48 loc) · 2.46 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Build a CPack driven installer package
if (BUILD_PACKAGE)
# Windows package everything to base directory, otherwise lib is separate.
if (windows)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "/")
endif (windows)
include (InstallRequiredSystemLibraries)
set (CPACK_RESOURCE_FILE_LICENSE
"${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set (CPACK_RESOURCE_FILE_README
"${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set (CPACK_RESOURCE_FILE_WELCOME
"${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set (CPACK_PACKAGE_VERSION_MAJOR "${MCR_VER_MAJ}")
set (CPACK_PACKAGE_VERSION_MINOR "${MCR_VER_MIN}")
set (CPACK_PACKAGE_VERSION_PATCH "${GIT_REVISION}")
set (CPACK_PACKAGE_VENDOR "New Paradigm Software")
set (CPACK_PACKAGE_NAME "Libmacro")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Libmacro is a multi-platform, extendable macro and hotkey C library.")
set (CPACK_PACKAGE_INSTALL_DIRECTORY "Libmacro ${MCR_VER}")
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "Libmacro ${MCR_VER}.${GIT_REVISION}")
if (WIN32)
# There is a bug in NSIS that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
# set (CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
# CPACK_NSIS_MUI_ICON
# An icon filename. The name of a *.ico file used as the main icon for the generated install program.
# CPACK_NSIS_MUI_UNIICON
# An icon filename. The name of a *.ico file used as the main icon for the generated uninstall program.
set (CPACK_NSIS_INSTALL_ROOT "C:\\\\Program Files\\\\New Paradigm Software")
set (CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
# set (CPACK_NSIS_MODIFY_PATH ON)
set (CPACK_NSIS_DISPLAY_NAME "Libmacro")
set (CPACK_NSIS_PACKAGE_NAME "Libmacro")
# set (CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe")
set (CPACK_NSIS_HELP_LINK "http://sites.google.com/view/newparadigmsoftware")
set (CPACK_NSIS_URL_INFO_ABOUT "http://sites.google.com/view/newparadigmsoftware")
set (CPACK_NSIS_CONTACT "newparadigmsoftware@gmail.com")
endif (WIN32)
include (CPack)
endif (BUILD_PACKAGE)
## for multi-config builds (e.g. msvc)
#foreach (OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
# string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG)
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/out)
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/out)
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/out)
#endforeach (OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES)