1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

cmake: customize OpenCV build via CMake script hooks

This commit is contained in:
Alexander Alekhin
2018-01-29 18:02:00 +03:00
parent cff79609c8
commit 36f11a54e1
5 changed files with 106 additions and 6 deletions
+8 -3
View File
@@ -1,4 +1,9 @@
if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
ocv_cmake_hook(INIT_CPACK)
if(NOT EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
message(STATUS "CPack is not found. SKIP")
return()
endif()
set(CPACK_set_DESTDIR "on")
if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
@@ -165,6 +170,6 @@ if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
set(CPACK_DEBIAN_COMPONENT_TESTS_NAME "lib${CMAKE_PROJECT_NAME}-tests")
endif(NOT OPENCV_CUSTOM_PACKAGE_INFO)
ocv_cmake_hook(PRE_CPACK)
include(CPack)
ENDif(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
ocv_cmake_hook(POST_CPACK)