mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 09:19:11 +08:00
17 lines
452 B
CMake
17 lines
452 B
CMake
|
cmake_minimum_required(VERSION 3.11)
|
||
|
project(nanosvg NONE)
|
||
|
|
||
|
set(NANOSVG_HEADERS src/nanosvg.h src/nanosvgrast.h)
|
||
|
add_library(nanosvg INTERFACE)
|
||
|
|
||
|
set_target_properties(nanosvg PROPERTIES PUBLIC_HEADER "${NANOSVG_HEADERS}")
|
||
|
|
||
|
install(TARGETS nanosvg
|
||
|
EXPORT nanosvgTargets
|
||
|
PUBLIC_HEADER DESTINATION include)
|
||
|
|
||
|
install(EXPORT nanosvgTargets
|
||
|
FILE unofficial-nanosvg-config.cmake
|
||
|
NAMESPACE unofficial::nanosvg::
|
||
|
DESTINATION share/unofficial-nanosvg)
|