Skip to content

Commit

Permalink
Add avifgainmaputil to installed apps (#2532)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryla-uc authored Dec 31, 2024
1 parent 3a020d1 commit 3c0ede5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The changes are relative to the previous release, unless the baseline is specifi
AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP compile flag.
* Remove AVIF_ENABLE_GTEST CMake option. It's now implied by
AVIF_GTEST=LOCAL/SYSTEM.
* Add 'avifgainmaputil' command line tool to installed apps.

## [1.1.1] - 2024-07-30

Expand Down
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -729,14 +729,6 @@ if(AVIF_BUILD_APPS)
endif()
target_link_libraries(avifdec avif_apps avif avif_enable_warnings)

if(NOT SKIP_INSTALL_APPS AND NOT SKIP_INSTALL_ALL)
install(
TARGETS avifenc avifdec
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
endif()
include(LocalLibargparse)

set(AVIFGAINMAPUTIL_SRCS
Expand All @@ -762,7 +754,15 @@ if(AVIF_BUILD_APPS)
set_target_properties(avifgainmaputil PROPERTIES LINKER_LANGUAGE "CXX")
target_include_directories(avifgainmaputil PRIVATE apps/avifgainmaputil/)
target_link_libraries(avifgainmaputil libargparse avif_apps avif avif_enable_warnings)
# Don't add avifgainmaputil to installed apps for now.

if(NOT SKIP_INSTALL_APPS AND NOT SKIP_INSTALL_ALL)
install(
TARGETS avifenc avifdec avifgainmaputil
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
endif()
endif()

if(AVIF_BUILD_TESTS)
Expand Down

0 comments on commit 3c0ede5

Please sign in to comment.