Fixed broken headers install layout

This commit is contained in:
Andrey Kamaev 2012-03-11 15:22:38 +00:00
parent 4ebb66362c
commit 628076b7da

View File

@ -426,8 +426,11 @@ macro(ocv_create_module)
# only "public" headers need to be installed
if(OPENCV_MODULE_${the_module}_HEADERS AND OPENCV_MODULES_PUBLIC MATCHES "(^|;)${the_module}(;|$)")
install(FILES ${OPENCV_MODULE_${the_module}_HEADERS}
DESTINATION ${OPENCV_INCLUDE_PREFIX}/opencv2/${name} COMPONENT main)
foreach(hdr ${OPENCV_MODULE_${the_module}_HEADERS})
if(hdr MATCHES "(opencv2/.*)/[^/]+.h(..)?$")
install(FILES ${hdr} DESTINATION "${OPENCV_INCLUDE_PREFIX}/${CMAKE_MATCH_1}" COMPONENT main)
endif()
endforeach()
endif()
endmacro()