-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathCM_package.cmake
42 lines (33 loc) · 1.5 KB
/
CM_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
35
36
37
38
39
40
41
42
# Darknet object detection framework
# Build an installation package.
# For example, set the generator to "DEB" or "RPM" depending on the platform you are using.
#
SET (CPACK_PACKAGE_NAME "darknet")
SET (CPACK_PACKAGE_HOMEPAGE_URL "https://darknetcv.ai/")
SET (CPACK_PACKAGE_DESCRIPTION "Darknet/YOLO Object Detection Framework")
SET (CPACK_PACKAGE_CONTACT "Stephane Charette <[email protected]>")
SET (CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE)
# You need to pick one package file type, and comment out the other.
# On Ubuntu, you'd typically use DEB files. If you are on using a Linux
# distro that uses RPM files such as Centos or OpenSUSE then you'd likely
# want to use RPM.
#
# And if using Windows, then NSIS is the only option supported by CPack.
#
IF (UNIX)
SET (CPACK_GENERATOR "DEB")
# SET (CPACK_GENERATOR "RPM")
SET (CPACK_DEBIAN_PACKAGE_SHLIBDEPS "ON")
ENDIF ()
IF (WIN32)
SET (CPACK_PACKAGE_INSTALL_DIRECTORY "Darknet") # C:/Program Files/Darknet/...
SET (CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/src-cli/windows/darknet_logo_blue.ico")
SET (CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/src-cli/windows/darknet_logo_blue.ico")
SET (CPACK_NSIS_DISPLAY_NAME "Darknet/YOLO Object Detection Framework")
SET (CPACK_NSIS_PACKAGE_NAME "Darknet/YOLO Object Detection Framework")
SET (CPACK_NSIS_MODIFY_PATH "ON")
SET (CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
SET (CPACK_NSIS_CONTACT "[email protected]")
SET (CPACK_GENERATOR "NSIS")
ENDIF ()
INCLUDE (CPack)