introduce BUILD_TINY_GPU_MODULE CMake option

it adds OPENCV_TINY_GPU_MODULE definition, that will allow
to build tiny version of gpu module (with limited image format support)
This commit is contained in:
Vladislav Vinogradov
2015-03-04 13:38:46 +03:00
parent bb44316028
commit cde697dd14
2 changed files with 6 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ if(OPENCV_CAN_BREAK_BINARY_COMPATIBILITY)
add_definitions(-DOPENCV_CAN_BREAK_BINARY_COMPATIBILITY)
endif()
if(BUILD_TINY_GPU_MODULE)
add_definitions(-DOPENCV_TINY_GPU_MODULE)
endif()
if(CMAKE_COMPILER_IS_GNUCXX)
# High level of warnings.
add_extra_compiler_option(-W)