mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.1 KiB
100 lines
3.1 KiB
# |
|
# CPack template for OpenCV |
|
# |
|
# (c) Copyrights 2008 Hartmut Seichter, HIT Lab NZ |
|
# |
|
|
|
set(CPACK_PACKAGE_NAME "OpenCV") |
|
set(CPACK_PACKAGE_VENDOR "OpenCV project opencvlibrary.sourceforge.net") |
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenCV SDK for ${CMAKE_GENERATOR} is an All-In-One package for developing computer vision applications") |
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/doc/license.txt") |
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR "${OPENCV_VERSION_MAJOR}") |
|
set(CPACK_PACKAGE_VERSION_MINOR "${OPENCV_VERSION_MINOR}") |
|
set(CPACK_PACKAGE_VERSION_PATCH "${OPENCV_VERSION_PATCH}") |
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "OpenCV${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}") |
|
|
|
set(CPACK_PACKAGE_EXECUTABLES "") |
|
|
|
set(CPACK_COMPONENTS_ALL main src Unspecified) |
|
|
|
set(CPACK_COMPONENT_main_DISPLAY_NAME "Binaries and the Documentation") |
|
set(CPACK_COMPONENT_src_DISPLAY_NAME "The source code") |
|
|
|
set(CPACK_ALL_INSTALL_TYPES Full) |
|
|
|
set(CPACK_COMPONENT_MAIN_INSTALL_TYPES Full) |
|
set(CPACK_COMPONENT_SRC_INSTALL_TYPES Full) |
|
|
|
set(CPACK_SOURCE_IGNORE_FILES |
|
"/\\\\.svn/" |
|
"/autom4te.cache/" |
|
"/build/" |
|
"/interfaces/" |
|
"/swig_python/" |
|
"/octave/" |
|
"/gtest/" |
|
"~$" |
|
"\\\\.aux$" |
|
"\\\\.bbl$" |
|
"\\\\.blg$" |
|
"\\\\.idx$" |
|
"\\\\.ilg$" |
|
"\\\\.ind$" |
|
"\\\\.log$" |
|
"\\\\.toc$" |
|
"\\\\.out$" |
|
"\\\\.pyc$" |
|
"\\\\.pyo$" |
|
"\\\\.vcproj$" |
|
"/1$" |
|
"${CPACK_SOURCE_IGNORE_FILES}") |
|
|
|
if(NOT WIN32) |
|
set(CPACK_SOURCE_IGNORE_FILES |
|
"/lib/" |
|
"\\\\.dll$" |
|
"${CPACK_SOURCE_IGNORE_FILES}") |
|
endif() |
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME |
|
"${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
|
|
|
if(WIN32) |
|
set(CPACK_GENERATOR "NSIS") |
|
set(CPACK_SOURCE_GENERATOR "ZIP") |
|
set(CPACK_NSIS_PACKAGE_NAME "OpenCV ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}rc") |
|
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}\\\\doc\\\\opencv.ico") |
|
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}\\\\doc\\\\opencv.ico") |
|
#set(CPACK_PACKAGE_ICON "utils/opencv.ico") |
|
|
|
set(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_SOURCE_DIR}\\\\doc\\\\opencv.ico") |
|
set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\opencv.willowgarage.com") |
|
set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\opencv.willowgarage.com") |
|
set(CPACK_NSIS_CONTACT "") |
|
set(CPACK_NSIS_DISPLAY_NAME "Open Source Computer Vision Library") |
|
|
|
set(CPACK_NSIS_MENU_LINKS |
|
"http://opencv.willowgarage.com" "Start Page" |
|
"doc\\\\opencv2refman.pdf" "The OpenCV Reference Manual" |
|
"doc\\\\opencv_tutorials.pdf" "The OpenCV Tutorials for Beginners" |
|
"CMakeLists.txt" "The Build Script (open with CMake)" |
|
"samples\\\\c" "C Samples" |
|
"samples\\\\cpp" "C++ Samples" |
|
"samples\\\\python" "Python Samples") |
|
|
|
# Add "<install_path>/bin" to the system PATH |
|
set(CPACK_NSIS_MODIFY_PATH ON) |
|
else() |
|
set(CPACK_GENERATOR "TBZ2") |
|
set(CPACK_SOURCE_GENERATOR "TBZ2") |
|
|
|
if(APPLE) |
|
set(CPACK_GENERATOR "PackageMaker;TBZ2") |
|
endif() |
|
endif() |
|
|
|
include(CPack)
|
|
|