mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 18:19:07 +08:00
24ae27eb23
* [vtk] Fix the dependency curl of proj * version * [libexif] Change to the official build system * add port-version * version * revert * libexif * version * default feature nls * version * update * format * version * revert * vdb * version
29 lines
1.4 KiB
CMake
29 lines
1.4 KiB
CMake
|
|
if(NOT TARGET unofficial::libexif::libexif)
|
|
add_library(unofficial::libexif::libexif UNKNOWN IMPORTED)
|
|
get_filename_component(z_vcpkg_LIBEXIF_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(z_vcpkg_LIBEXIF_root "${z_vcpkg_libexif_root}" PATH)
|
|
get_filename_component(z_vcpkg_LIBEXIF_root "${z_vcpkg_libexif_root}" PATH)
|
|
set_target_properties(unofficial::libexif::libexif PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${z_vcpkg_libexif_root}/include"
|
|
)
|
|
find_library(Z_VCPKG_LIBEXIF_LIBRARY_RELEASE NAMES libexif PATHS "${z_vcpkg_LIBEXIF_root }/lib" NO_DEFAULT_PATH REQUIRED)
|
|
find_library(Z_VCPKG_LIBEXIF_LIBRARY_DEBUG NAMES libexif PATHS "${z_vcpkg_LIBEXIF_root }/debug/lib" NO_DEFAULT_PATH)
|
|
|
|
if(EXISTS "${Z_VCPKG_LIBEXIF_LIBRARY_RELEASE}")
|
|
set_property(TARGET unofficial::libexif::libexif APPEND PROPERTY IMPORTED_CONFIGURATIONS "Release")
|
|
set_target_properties(unofficial::libexif::libexif PROPERTIES
|
|
IMPORTED_LOCATION_RELEASE "${Z_VCPKG_LIBEXIF_LIBRARY_RELEASE}"
|
|
)
|
|
endif()
|
|
|
|
if(EXISTS "${Z_VCPKG_LIBEXIF_LIBRARY_DEBUG}")
|
|
set_property(TARGET unofficial::libexif::libexif APPEND PROPERTY IMPORTED_CONFIGURATIONS "Debug")
|
|
set_target_properties(unofficial::libexif::libexif PROPERTIES
|
|
IMPORTED_LOCATION_DEBUG "${Z_VCPKG_LIBEXIF_LIBRARY_DEBUG}"
|
|
)
|
|
endif()
|
|
|
|
unset(z_vcpkg_LIBEXIF_root)
|
|
endif()
|