Skip to content

Commit 2e9c361

Browse files
committed
add cmake output which input formats are supported for heif-enc (#1205)
1 parent fba9ee8 commit 2e9c361

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

examples/CMakeLists.txt

+19-2
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,27 @@ endif ()
125125

126126
find_package(TIFF)
127127
if (TIFF_FOUND)
128-
message("libtiff found, building heif-enc with TIFF input support")
129128
target_link_libraries(heif-enc PRIVATE TIFF::TIFF)
130129
target_sources(heif-enc PRIVATE decoder_tiff.cc decoder_tiff.h)
131130
target_compile_definitions(heif-enc PUBLIC HAVE_LIBTIFF=1)
131+
endif ()
132+
133+
message("")
134+
message("=== Active input formats for heif-enc ===")
135+
if (JPEG_FOUND)
136+
message("JPEG: active")
137+
else ()
138+
message("JPEG: ------ (libjpeg not found)")
139+
endif ()
140+
if (PNG_FOUND)
141+
message("PNG: active")
132142
else ()
133-
message("libtiff NOT found, building heif-enc without TIFF input support")
143+
message("PNG: ------ (libpng not found)")
134144
endif ()
145+
if (TIFF_FOUND)
146+
message("TIFF: active")
147+
else ()
148+
message("TIFF: ------ (libtiff not found)")
149+
endif ()
150+
message("")
151+

0 commit comments

Comments
 (0)