Provide exiv2Config file automatically generated by CMake
This commit is contained in:
parent
30e76211b2
commit
686edde5ef
@ -202,6 +202,7 @@ endif()
|
||||
target_include_directories(exiv2lib PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/exiv2>
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
if (EXIV2_ENABLE_WEBREADY)
|
||||
@ -267,7 +268,7 @@ if( ICONV_FOUND )
|
||||
endif()
|
||||
|
||||
|
||||
install(TARGETS exiv2lib
|
||||
install(TARGETS exiv2lib EXPORT exiv2Config
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
@ -276,6 +277,8 @@ install(FILES ${LIBEXIV2_HDR}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exiv2
|
||||
)
|
||||
|
||||
install(EXPORT exiv2Config DESTINATION "share/exiv2/cmake")
|
||||
|
||||
# ******************************************************************************
|
||||
# exiv2 application
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ if( EXIV2_ENABLE_LIBXMP )
|
||||
endif()
|
||||
|
||||
# 1119 Install libxmp.a for use by third party applications (Thanks, Emmanuel)
|
||||
install(TARGETS xmp
|
||||
install(TARGETS xmp EXPORT exiv2Config
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user