summaryrefslogtreecommitdiffstats
path: root/Tests/FindOpenCL/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <cmake@anteru.net>2016-05-31 19:10:40 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-02 12:46:43 (GMT)
commitb66d4739b5e0944a58d4a94431ed7ad042fad05d (patch)
treec94db9a8ff74b3656cc609dc5564752de234e060 /Tests/FindOpenCL/CMakeLists.txt
parentd6754d37d593a0189809dcf98bc4fdf3a609f0a3 (diff)
downloadCMake-b66d4739b5e0944a58d4a94431ed7ad042fad05d.zip
CMake-b66d4739b5e0944a58d4a94431ed7ad042fad05d.tar.gz
CMake-b66d4739b5e0944a58d4a94431ed7ad042fad05d.tar.bz2
FindOpenCL: Add an imported target
Diffstat (limited to 'Tests/FindOpenCL/CMakeLists.txt')
-rw-r--r--Tests/FindOpenCL/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/FindOpenCL/CMakeLists.txt b/Tests/FindOpenCL/CMakeLists.txt
new file mode 100644
index 0000000..88d2eae
--- /dev/null
+++ b/Tests/FindOpenCL/CMakeLists.txt
@@ -0,0 +1,10 @@
+add_test(NAME FindOpenCL.Test COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/FindOpenCL/Test"
+ "${CMake_BINARY_DIR}/Tests/FindOpenCL/Test"
+ ${build_generator_args}
+ --build-project TestFindOpenCL
+ --build-options ${build_options}
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )