blob: b445e0e1090756c977722f611eca8950f9e19030 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
cmake_minimum_required(VERSION 3.1)
project(TestFindXalanC CXX)
include(CTest)
# CMake does not actually provide FindXalanC publicly.
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../Source/Modules)
find_package(XalanC REQUIRED)
add_executable(test_xalanc_tgt main.cxx)
target_link_libraries(test_xalanc_tgt XalanC::XalanC)
add_test(NAME test_xalanc_tgt COMMAND test_xalanc_tgt)
add_executable(test_xalanc_var main.cxx)
target_include_directories(test_xalanc_var PRIVATE ${XalanC_INCLUDE_DIRS})
target_link_libraries(test_xalanc_var PRIVATE ${XalanC_LIBRARIES})
add_test(NAME test_xalanc_var COMMAND test_xalanc_var)
|