summaryrefslogtreecommitdiffstats
path: root/Tests/FindVulkan/Test/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <cmake@anteru.net>2016-06-04 18:48:23 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-08 16:44:03 (GMT)
commitadf4df28caf621569d9d0d62011fc38773710319 (patch)
treef90eec161d660419198410031bb639b855e230f1 /Tests/FindVulkan/Test/CMakeLists.txt
parent6a22a7cf71c0f564a150717a31651f9730c808fc (diff)
downloadCMake-adf4df28caf621569d9d0d62011fc38773710319.zip
CMake-adf4df28caf621569d9d0d62011fc38773710319.tar.gz
CMake-adf4df28caf621569d9d0d62011fc38773710319.tar.bz2
Add FindVulkan.cmake.
This adds FindVulkan with corresponding tests.
Diffstat (limited to 'Tests/FindVulkan/Test/CMakeLists.txt')
-rw-r--r--Tests/FindVulkan/Test/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/FindVulkan/Test/CMakeLists.txt b/Tests/FindVulkan/Test/CMakeLists.txt
new file mode 100644
index 0000000..0b13d53
--- /dev/null
+++ b/Tests/FindVulkan/Test/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 3.4)
+project(TestFindVulkan C)
+include(CTest)
+
+SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../)
+find_package(Vulkan REQUIRED)
+
+add_executable(test_tgt main.c)
+target_link_libraries(test_tgt Vulkan::Vulkan)
+add_test(NAME test_tgt COMMAND test_tgt)
+
+add_executable(test_var main.c)
+target_include_directories(test_var PRIVATE ${Vulkan_INCLUDE_DIRS})
+target_link_libraries(test_var PRIVATE ${Vulkan_LIBRARIES})
+add_test(NAME test_var COMMAND test_var)