build: fix opencv_world with CUDA

This commit is contained in:
Alexander Alekhin
2016-01-14 16:59:33 +03:00
parent c3ad8af42a
commit c8ff7a4867
4 changed files with 9 additions and 19 deletions

View File

@@ -17,6 +17,6 @@ ocv_set_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs})
ocv_create_module()
if(BUILD_TESTS)
if(BUILD_TESTS AND NOT BUILD_opencv_world)
add_subdirectory(test)
endif()

View File

@@ -20,13 +20,13 @@ if(NOT OPENCV_INITIAL_PASS)
foreach(m ${OPENCV_MODULES_BUILD})
if(OPENCV_MODULE_${m}_IS_PART_OF_WORLD)
message(STATUS " module ${m}...")
set(CMAKE_CURRENT_SOURCE_DIR ${OPENCV_MODULE_${m}_LOCATION})
set(CMAKE_CURRENT_SOURCE_DIR "${OPENCV_MODULE_${m}_LOCATION}")
#add_subdirectory("${OPENCV_MODULE_${m}_LOCATION}" ${CMAKE_CURRENT_BINARY_DIR}/${m})
include_one_module(${m})
endif()
endforeach()
message(STATUS "Processing WORLD modules... DONE")
set(CMAKE_CURRENT_SOURCE_DIR OPENCV_MODULE_${opencv_world}_LOCATION)
set(CMAKE_CURRENT_SOURCE_DIR "${OPENCV_MODULE_opencv_world_LOCATION}")
endif()
ocv_add_module(world opencv_core)