vcpkg/ports/lv2/CMakeLists.txt
NancyLi1013 5b2ac1fed8
[libhsplasma/libpcap/lv2/libcrafter] Update to the latest version (#19965)
* [libhsplasma/libpcap/lv2] Update to the latest version

* [libpcap] Remove unused comments

* Update version files

* [lv2] Fix usage
[libpcap] Update ci.baseline.txt

* [libhsplasma] Remove x64-windows-static=fail from ci.baseline.txt

* [libcrafter] Update to 1.0

* [libcrafter] Add vcpkg.json

* Update version files

* Add CRT check for libpcap and update version as versin-semver for libpcap

* Update version files

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-09-08 07:45:37 -07:00

36 lines
830 B
CMake

cmake_minimum_required(VERSION 3.17)
project(lv2 NONE)
add_library(lv2 INTERFACE)
install(
TARGETS lv2
EXPORT lv2-config
INCLUDES DESTINATION include
)
install(
DIRECTORY lv2
DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
install(FILES lv2/core/lv2.h DESTINATION include)
# Install headers to old URI-style paths, using mapping from wscript
file(READ wscript WSCRIPT)
string(REGEX MATCHALL "'[^']+' *: 'lv2/[^']+'" SPEC_MAP "${WSCRIPT}")
foreach(PAIR ${SPEC_MAP})
string(REGEX MATCH "'([^']+)' *: '([^']+)'" _ "${PAIR}")
install(
DIRECTORY "lv2/${CMAKE_MATCH_1}/"
DESTINATION "include/${CMAKE_MATCH_2}"
FILES_MATCHING PATTERN "*.h"
)
endforeach()
install(
EXPORT lv2-config
NAMESPACE lv2::
DESTINATION share/lv2
)