summaryrefslogtreecommitdiffstats
path: root/Tests/FindTIFF/Test/CMakeLists.txt
blob: f17cda77f7178d2ae16ba1d36a1b21062c548ec1 (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(TestFindTIFF C)
include(CTest)

# CMake does not actually provide FindTIFF publicly.
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../Source/Modules)

find_package(TIFF REQUIRED)

add_executable(test_xercesc_tgt main.c)
target_link_libraries(test_xercesc_tgt TIFF::TIFF)
add_test(NAME test_xercesc_tgt COMMAND test_xercesc_tgt)

add_executable(test_xercesc_var main.c)
target_include_directories(test_xercesc_var PRIVATE ${TIFF_INCLUDE_DIRS})
target_link_libraries(test_xercesc_var PRIVATE ${TIFF_LIBRARIES})
add_test(NAME test_xercesc_var COMMAND test_xercesc_var)