You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
project(TestFindTIFF C)
|
|
|
|
include(CTest)
|
|
|
|
|
|
|
|
find_package(TIFF REQUIRED)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
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)
|