2015-12-02 20:20:24 +03:00
|
|
|
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)
|
|
|
|
|
2016-07-10 21:16:16 +03:00
|
|
|
add_executable(test_tiff_tgt main.c)
|
|
|
|
target_link_libraries(test_tiff_tgt TIFF::TIFF)
|
|
|
|
add_test(NAME test_tiff_tgt COMMAND test_tiff_tgt)
|
2015-12-02 20:20:24 +03:00
|
|
|
|
2016-07-10 21:16:16 +03:00
|
|
|
add_executable(test_tiff_var main.c)
|
|
|
|
target_include_directories(test_tiff_var PRIVATE ${TIFF_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(test_tiff_var PRIVATE ${TIFF_LIBRARIES})
|
|
|
|
add_test(NAME test_tiff_var COMMAND test_tiff_var)
|