mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
[libsersi] Add new library (#39349)
This commit is contained in:
parent
d8e76e3b01
commit
ee4728e45a
22
ports/libsersi/portfile.cmake
Normal file
22
ports/libsersi/portfile.cmake
Normal file
@ -0,0 +1,22 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO crhowell3/libsersi
|
||||
REF "v${VERSION}"
|
||||
SHA512 f8cd84e12a14d6c9dc424c176b3e0536293cfa96f4cb03f7e4c9008ce6272b70284179f16dca5f5fb82c4cad9003a16ed2639bcd52f18f39b9587cd63075e188
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DINSTALL_INCLUDE_DIR=include
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libsersi)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
4
ports/libsersi/usage
Normal file
4
ports/libsersi/usage
Normal file
@ -0,0 +1,4 @@
|
||||
libsersi provides CMake targets:
|
||||
|
||||
find_package(libsersi CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE libsersi::sersi)
|
17
ports/libsersi/vcpkg.json
Normal file
17
ports/libsersi/vcpkg.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "libsersi",
|
||||
"version": "0.1.0",
|
||||
"description": "C++ implementation of the IEEE 1278.1a-1998 Distributed Interactive Simulation (DIS) application protocol.",
|
||||
"homepage": "https://github.com/crhowell3/libsersi",
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -4972,6 +4972,10 @@
|
||||
"baseline": "1.3.2",
|
||||
"port-version": 1
|
||||
},
|
||||
"libsersi": {
|
||||
"baseline": "0.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libsigcpp": {
|
||||
"baseline": "3.6.0",
|
||||
"port-version": 1
|
||||
|
9
versions/l-/libsersi.json
Normal file
9
versions/l-/libsersi.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "bfdfe9c36a1ab63c2f390eec51c01e665ebd23dd",
|
||||
"version": "0.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user