mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:48:59 +08:00
e2667a41fc
* [easyexif] create a new port * [easyexif] update versions JSON * [easyexif] misc changes * [easyexif] fix mistype in install(TARGETS)
22 lines
507 B
CMake
22 lines
507 B
CMake
cmake_minimum_required(VERSION 3.11)
|
|
project(easyexif CXX)
|
|
include(GNUInstallDirs)
|
|
|
|
add_library(easyexif STATIC
|
|
exif.h
|
|
exif.cpp
|
|
)
|
|
|
|
set_target_properties(easyexif
|
|
PROPERTIES
|
|
CXX_STANDARD 11
|
|
PUBLIC_HEADER exif.h
|
|
)
|
|
|
|
install(TARGETS easyexif
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
)
|
|
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}) # share/easyexif
|