mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
556 B
21 lines
556 B
6 years ago
|
set(VULKAN_INCLUDE_DIRS "${OpenCV_SOURCE_DIR}/3rdparty/include" CACHE PATH "Vulkan include directory")
|
||
|
set(VULKAN_LIBRARIES "")
|
||
|
|
||
|
try_compile(VALID_VULKAN
|
||
|
"${OpenCV_BINARY_DIR}"
|
||
|
"${OpenCV_SOURCE_DIR}/cmake/checks/vulkan.cpp"
|
||
|
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${VULKAN_INCLUDE_DIRS}"
|
||
|
OUTPUT_VARIABLE TRY_OUT
|
||
|
)
|
||
|
if(NOT ${VALID_VULKAN})
|
||
|
message(WARNING "Can't use Vulkan")
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(HAVE_VULKAN 1)
|
||
|
|
||
|
if(HAVE_VULKAN)
|
||
|
add_definitions(-DVK_NO_PROTOTYPES)
|
||
|
include_directories(${VULKAN_INCLUDE_DIRS})
|
||
|
endif()
|