vcpkg/ports/easyexif/CMakeLists.txt
Park DongHa e2667a41fc
[easyexif] create a new port (#27118)
* [easyexif] create a new port

* [easyexif] update versions JSON

* [easyexif] misc changes

* [easyexif] fix mistype in install(TARGETS)
2022-10-06 11:52:26 -07:00

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