|
|
|
@ -6,6 +6,7 @@ if( EXIV2_BUILD_UNIT_TESTS )
|
|
|
|
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # Requires CMake 3.3.3
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
|
@ -113,7 +114,7 @@ if( EXIV2_ENABLE_PNG )
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if( EXIV2_ENABLE_VIDEO )
|
|
|
|
|
target_sources(exiv2lib PRIVATE
|
|
|
|
|
target_sources(exiv2lib PRIVATE
|
|
|
|
|
asfvideo.cpp ../include/exiv2/asfvideo.hpp
|
|
|
|
|
matroskavideo.cpp ../include/exiv2/matroskavideo.hpp
|
|
|
|
|
quicktimevideo.cpp ../include/exiv2/quicktimevideo.hpp
|
|
|
|
@ -224,6 +225,7 @@ if( ICONV_FOUND )
|
|
|
|
|
target_link_libraries( exiv2lib PRIVATE Iconv::Iconv )
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
write_basic_package_version_file(exiv2ConfigVersion.cmake COMPATIBILITY ExactVersion)
|
|
|
|
|
|
|
|
|
|
install(TARGETS exiv2lib EXPORT exiv2Config
|
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
@ -239,6 +241,8 @@ install(FILES
|
|
|
|
|
|
|
|
|
|
install(EXPORT exiv2Config DESTINATION "share/exiv2/cmake")
|
|
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake DESTINATION "share/exiv2/cmake")
|
|
|
|
|
|
|
|
|
|
# ******************************************************************************
|
|
|
|
|
# exiv2 application
|
|
|
|
|
|
|
|
|
|