| 1 |
if(NOT "@BUILD_SHARED_LIBS@") |
| 2 |
# TODO: import dependencies |
| 3 |
endif() |
| 4 |
|
| 5 |
function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path) |
| 6 |
if(IS_ABSOLUTE "${rel_or_abs_path}") |
| 7 |
set(${var} "${rel_or_abs_path}" PARENT_SCOPE) |
| 8 |
else() |
| 9 |
set(${var} "${root}/${rel_or_abs_path}" PARENT_SCOPE) |
| 10 |
endif() |
| 11 |
endfunction() |
| 12 |
|
| 13 |
# Tell the user project where to find our headers and libraries |
| 14 |
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE) |
| 15 |
get_filename_component(_ROOT "${_DIR}/@PROJECT_ROOT_DIR@" ABSOLUTE) |
| 16 |
# Use _ROOT as prefix here for the possibility of relocation after installation. |
| 17 |
set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT}" "@CMAKE_INSTALL_INCLUDEDIR@") |
| 18 |
set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR}) |
| 19 |
|
| 20 |
set(TIFF_LIBRARIES TIFF::tiff) |
| 21 |
|
| 22 |
if(NOT TARGET TIFF::tiff) |
| 23 |
include("${CMAKE_CURRENT_LIST_DIR}/TiffTargets.cmake") |
| 24 |
endif() |
| 25 |
|
| 26 |
unset (_ROOT) |
| 27 |
unset (_DIR) |