mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
19 lines
No EOL
679 B
CMake
19 lines
No EOL
679 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)
|
|
|
|
if (Vulkan_FOUND)
|
|
add_definitions(-DHAVE_VULKAN)
|
|
target_include_directories(${TARGET_NAME} PRIVATE ${Vulkan_INCLUDE_DIRS})
|
|
target_link_libraries(${TARGET_NAME} ${Vulkan_LIBRARIES})
|
|
|
|
add_dependency_external_projects(glslang)
|
|
target_include_directories(${TARGET_NAME} PRIVATE ${GLSLANG_INCLUDE_DIRS})
|
|
target_link_libraries(${TARGET_NAME} ${GLSLANG_LIBRARIES})
|
|
endif()
|
|
endmacro() |