summaryrefslogtreecommitdiffstats
path: root/Tests/FindJPEG/CMakeLists.txt
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2018-04-17 21:52:53 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-18 12:59:06 (GMT)
commit87f2cf3b1ce0ef7b8e71eae0f44cf9753660d423 (patch)
treeba042fc7de4a29acecb7385dc7fca0da70f8d038 /Tests/FindJPEG/CMakeLists.txt
parent13952a3b7fb930baeeda299bf186e29d57d794fe (diff)
downloadCMake-87f2cf3b1ce0ef7b8e71eae0f44cf9753660d423.zip
CMake-87f2cf3b1ce0ef7b8e71eae0f44cf9753660d423.tar.gz
CMake-87f2cf3b1ce0ef7b8e71eae0f44cf9753660d423.tar.bz2
FindJPEG: Add imported target support and full test
Diffstat (limited to 'Tests/FindJPEG/CMakeLists.txt')
-rw-r--r--Tests/FindJPEG/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/FindJPEG/CMakeLists.txt b/Tests/FindJPEG/CMakeLists.txt
new file mode 100644
index 0000000..c8663c5
--- /dev/null
+++ b/Tests/FindJPEG/CMakeLists.txt
@@ -0,0 +1,10 @@
+add_test(NAME FindJPEG.Test COMMAND
+ ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/FindJPEG/Test"
+ "${CMake_BINARY_DIR}/Tests/FindJPEG/Test"
+ ${build_generator_args}
+ --build-project TestFindJPEG
+ --build-options ${build_options}
+ --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
+ )