Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 authored Apr 28, 2024
1 parent ce2156f commit c7ace0c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/extcmake_tinytiff_test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
project(extcmake_tinytiff_test CXX)
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.10)

set(EXAMPLE_NAME extcmake_tinytiff_test)

find_package(TinyTIFF REQUIRED)
find_package(TinyTIFFShared REQUIRED)
set(libTinyTiff "TinyTIFFShared")
if (NOT TinyTIFFShared_FOUND)
find_package(TinyTIFFStatic REQUIRED)
set(libTinyTiff "TinyTIFFStatic")
endif()

add_executable(${EXAMPLE_NAME}
extcmake_tinytiff_test.cpp
)
target_link_libraries(${EXAMPLE_NAME} TinyTIFF)
target_link_libraries(${EXAMPLE_NAME} ${libTinyTiff})

0 comments on commit c7ace0c

Please sign in to comment.