Merge pull request #1802 from SpecLad:cmake-templates

This commit is contained in:
Roman Donchenko 2013-11-15 16:52:55 +04:00 committed by OpenCV Buildbot
commit f95ff0a352
4 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# platform-specific config file # platform-specific config file
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.cmake" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h") configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h")
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# opencv_modules.hpp based on actual modules list # opencv_modules.hpp based on actual modules list

View File

@ -76,7 +76,9 @@ if(INSTALL_TO_MANGLED_PATHS)
else() else()
set(OPENCV_PC_FILE_NAME opencv.pc) set(OPENCV_PC_FILE_NAME opencv.pc)
endif() endif()
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/opencv-XXX.pc.cmake.in" "${CMAKE_BINARY_DIR}/unix-install/${OPENCV_PC_FILE_NAME}" @ONLY IMMEDIATE) configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/opencv-XXX.pc.in"
"${CMAKE_BINARY_DIR}/unix-install/${OPENCV_PC_FILE_NAME}"
@ONLY IMMEDIATE)
if(UNIX AND NOT ANDROID) if(UNIX AND NOT ANDROID)
install(FILES ${CMAKE_BINARY_DIR}/unix-install/${OPENCV_PC_FILE_NAME} DESTINATION ${OPENCV_LIB_INSTALL_PATH}/pkgconfig) install(FILES ${CMAKE_BINARY_DIR}/unix-install/${OPENCV_PC_FILE_NAME} DESTINATION ${OPENCV_LIB_INSTALL_PATH}/pkgconfig)