2012-02-03 19:26:49 +08:00
|
|
|
# platform-specific config file
|
2013-11-14 23:14:38 +08:00
|
|
|
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h")
|
2015-05-26 20:58:27 +08:00
|
|
|
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/cvconfig.h")
|
2015-05-19 00:19:48 +08:00
|
|
|
install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev)
|
2012-02-03 19:26:49 +08:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# opencv_modules.hpp based on actual modules list
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
set(OPENCV_MODULE_DEFINITIONS_CONFIGMAKE "")
|
|
|
|
|
|
|
|
set(OPENCV_MOD_LIST ${OPENCV_MODULES_PUBLIC})
|
|
|
|
ocv_list_sort(OPENCV_MOD_LIST)
|
|
|
|
foreach(m ${OPENCV_MOD_LIST})
|
|
|
|
string(TOUPPER "${m}" m)
|
2012-06-15 21:04:17 +08:00
|
|
|
set(OPENCV_MODULE_DEFINITIONS_CONFIGMAKE "${OPENCV_MODULE_DEFINITIONS_CONFIGMAKE}#define HAVE_${m}\n")
|
2012-02-03 19:26:49 +08:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set(OPENCV_MODULE_DEFINITIONS_CONFIGMAKE "${OPENCV_MODULE_DEFINITIONS_CONFIGMAKE}\n")
|
|
|
|
|
2012-06-15 21:04:17 +08:00
|
|
|
#set(OPENCV_MOD_LIST ${OPENCV_MODULES_DISABLED_USER} ${OPENCV_MODULES_DISABLED_AUTO} ${OPENCV_MODULES_DISABLED_FORCE})
|
|
|
|
#ocv_list_sort(OPENCV_MOD_LIST)
|
|
|
|
#foreach(m ${OPENCV_MOD_LIST})
|
|
|
|
# string(TOUPPER "${m}" m)
|
|
|
|
# set(OPENCV_MODULE_DEFINITIONS_CONFIGMAKE "${OPENCV_MODULE_DEFINITIONS_CONFIGMAKE}#undef HAVE_${m}\n")
|
|
|
|
#endforeach()
|
2012-02-03 19:26:49 +08:00
|
|
|
|
|
|
|
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/opencv_modules.hpp.in" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp")
|
2014-01-17 20:30:31 +08:00
|
|
|
install(FILES "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp" DESTINATION ${OPENCV_INCLUDE_INSTALL_PATH}/opencv2 COMPONENT dev)
|