18 lines
631 B
CMake
18 lines
631 B
CMake
|
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)
|