mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 03:17:56 +08:00
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
|