Use CMake's find_package to locate vulkan for samples and tests. (#308)

This commit is contained in:
Andreas Süßenbach
2019-04-01 08:52:22 +02:00
committed by Markus Tavenrath
parent 2d8483e06f
commit fba738079a
20 changed files with 24 additions and 20 deletions

View File

@@ -35,5 +35,5 @@ add_executable(12_InitFrameBuffers
set_target_properties(12_InitFrameBuffers PROPERTIES FOLDER "Samples")
target_include_directories(12_InitFrameBuffers PUBLIC ${CMAKE_SOURCE_DIR}/glslang)
target_link_libraries(12_InitFrameBuffers PUBLIC glslang SPIRV "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib"
target_link_libraries(12_InitFrameBuffers PUBLIC glslang SPIRV "${Vulkan_LIBRARIES}"
)