diff options
Diffstat (limited to 'Tests/FindXercesC/Test/CMakeLists.txt')
-rw-r--r-- | Tests/FindXercesC/Test/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/FindXercesC/Test/CMakeLists.txt b/Tests/FindXercesC/Test/CMakeLists.txt new file mode 100644 index 0000000..8e7767c --- /dev/null +++ b/Tests/FindXercesC/Test/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.1) +project(TestFindXercesC CXX) +include(CTest) + +# CMake does not actually provide FindXercesC publicly. +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../Source/Modules) + +find_package(XercesC REQUIRED) + +add_executable(test_xercesc_tgt main.cxx) +target_link_libraries(test_xercesc_tgt XercesC::XercesC) +add_test(NAME test_xercesc_tgt COMMAND test_xercesc_tgt) + +add_executable(test_xercesc_var main.cxx) +target_include_directories(test_xercesc_var PRIVATE ${XercesC_INCLUDE_DIRS}) +target_link_libraries(test_xercesc_var PRIVATE ${XercesC_LIBRARIES}) +add_test(NAME test_xercesc_var COMMAND test_xercesc_var) |