More granular build of Java API: it is now possible to build Java wrappers only for the subset of OpenCV modules

This commit is contained in:
Andrey Kamaev
2012-02-20 11:50:43 +00:00
parent 8dc28473c7
commit 00db5a69a2
6 changed files with 149 additions and 115 deletions

View File

@@ -98,6 +98,8 @@ macro(ocv_add_module _name)
endif()
set(OPENCV_MODULE_${the_module}_DESCRIPTION "${the_description}" CACHE INTERNAL "Brief description of ${the_module} module")
set(OPENCV_MODULE_${the_module}_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "Location of ${the_module} module sources")
unset(OPENCV_MODULE_${the_module}_REQ_DEPS CACHE)
unset(OPENCV_MODULE_${the_module}_OPT_DEPS CACHE)
#create option to enable/disable this module
option(BUILD_${the_module} "Include ${the_module} module into the OpenCV build" ON)