overte-lubosz/cmake/macros/TargetVulkan.cmake

13 lines
522 B
CMake

#
# Created by Bradley Austin Davis on 2016/02/16
#
# Distributed under the Apache License, Version 2.0.
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
#
macro(TARGET_VULKAN)
find_package(Vulkan REQUIRED)
find_package(Qt5 COMPONENTS X11Extras REQUIRED)
target_include_directories(${TARGET_NAME} PRIVATE ${VULKAN_INCLUDE_DIR})
target_link_libraries(${TARGET_NAME} ${VULKAN_LIBRARY})
target_link_libraries(${TARGET_NAME} ${Qt5X11Extras_LIBRARIES})
endmacro()