Skip to content

Commit

Permalink
create & install exiv2ConfigVersion.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Feb 9, 2019
1 parent fd6332a commit ce0284b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -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})

Expand Down Expand Up @@ -220,6 +221,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}
Expand All @@ -234,6 +236,8 @@ install(FILES

install(EXPORT exiv2Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2")

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake DESTINATION "share/exiv2/cmake")

# ******************************************************************************
# exiv2 application

Expand Down

0 comments on commit ce0284b

Please sign in to comment.