mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
removed unnecessary code from gpu/CMakeLists.txt
This commit is contained in:
parent
7bf2816f28
commit
048689876e
@ -171,15 +171,13 @@ if(BUILD_TESTS AND NOT ANDROID AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test)
|
||||
file(GLOB test_hdrs "test/*.h*")
|
||||
|
||||
if(HAVE_CUDA)
|
||||
include_directories(${CUDA_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia/core ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia/NPP_staging)
|
||||
|
||||
include_directories(${CUDA_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia/core ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia/NPP_staging)
|
||||
file(GLOB nvidia "test/nvidia/*.*")
|
||||
SET(ncv_cpp ${CMAKE_SOURCE_DIR}/modules/gpu/src/nvidia/core/NCV.cpp)
|
||||
source_group("nvidia" FILES ${nvidia})
|
||||
endif()
|
||||
|
||||
|
||||
add_executable(${the_target} ${test_srcs} ${test_hdrs} ${nvidia} ${ncv_cpp})
|
||||
add_executable(${the_target} ${test_srcs} ${test_hdrs} ${nvidia})
|
||||
|
||||
if(PCHSupport_FOUND)
|
||||
set(pch_header ${CMAKE_CURRENT_SOURCE_DIR}/test/test_precomp.hpp)
|
||||
|
Loading…
Reference in New Issue
Block a user