summaryrefslogtreecommitdiffstats
path: root/Tests/FindLibXml2
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2019-12-24 15:42:32 (GMT)
committerSylvain Joubert <joubert.sy@gmail.com>2019-12-31 11:45:26 (GMT)
commita179cbf205501b6470d2f8e892876cc8672e7096 (patch)
treefe85ec5e17f16ba376fb31eb3fa0b160cb9b59c9 /Tests/FindLibXml2
parenta07134e33934bdd4b50d2a4d3293fcd3f495a3d6 (diff)
downloadCMake-a179cbf205501b6470d2f8e892876cc8672e7096.zip
CMake-a179cbf205501b6470d2f8e892876cc8672e7096.tar.gz
CMake-a179cbf205501b6470d2f8e892876cc8672e7096.tar.bz2
FindLibXml2: provide imported target LibXml2::xmllint
Diffstat (limited to 'Tests/FindLibXml2')
-rw-r--r--Tests/FindLibXml2/Test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/FindLibXml2/Test/CMakeLists.txt b/Tests/FindLibXml2/Test/CMakeLists.txt
index df5d8c3..041cc13 100644
--- a/Tests/FindLibXml2/Test/CMakeLists.txt
+++ b/Tests/FindLibXml2/Test/CMakeLists.txt
@@ -14,3 +14,7 @@ add_executable(test_var main.c)
target_include_directories(test_var PRIVATE ${LIBXML2_INCLUDE_DIRS})
target_link_libraries(test_var PRIVATE ${LIBXML2_LIBRARIES})
add_test(NAME test_var COMMAND test_var)
+
+add_test(NAME xmllint_tgt COMMAND LibXml2::xmllint --version)
+
+add_test(NAME xmllint_var COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --version)