mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-08-22 14:27:10 -04:00
[cppduals] Add new port (#53513)
This commit is contained in:
parent
d535fa1cc4
commit
127402f1c7
5 changed files with 71 additions and 0 deletions
30
ports/cppduals/portfile.cmake
Normal file
30
ports/cppduals/portfile.cmake
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Header-only: there is nothing to build in debug.
|
||||
set(VCPKG_BUILD_TYPE release)
|
||||
|
||||
vcpkg_from_gitlab(
|
||||
GITLAB_URL https://gitlab.com
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO tesch1/cppduals
|
||||
REF "v${VERSION}"
|
||||
SHA512 70e47ee403cd1faaf5893fdab18ea94ce90cd4e8f31d8efa3b907ceafee859f852ff33d8d92feae077c496a56fe34a505e847f86042bdc34de1c53bb417b5a50
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCPPDUALS_TESTING=OFF
|
||||
-DCPPDUALS_BENCHMARK=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME cppduals CONFIG_PATH lib/cmake/cppduals)
|
||||
|
||||
# No libraries to ship, only headers and the CMake package files.
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
6
ports/cppduals/usage
Normal file
6
ports/cppduals/usage
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
cppduals provides CMake targets:
|
||||
|
||||
find_package(cppduals CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE cppduals::duals)
|
||||
|
||||
If you use this in research, please cite doi:10.21105/joss.01487 (Tesch, JOSS 4(43):1487, 2019).
|
||||
22
ports/cppduals/vcpkg.json
Normal file
22
ports/cppduals/vcpkg.json
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "cppduals",
|
||||
"version": "0.9.2",
|
||||
"description": [
|
||||
"Header-only C++17 dual-number library for exact forward-mode automatic differentiation",
|
||||
"If you use this in research, please cite doi:10.21105/joss.01487 (Tesch, JOSS 4(43):1487, 2019)."
|
||||
],
|
||||
"homepage": "https://gitlab.com/tesch1/cppduals",
|
||||
"documentation": "https://tesch1.gitlab.io/cppduals/",
|
||||
"license": "MPL-2.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -2104,6 +2104,10 @@
|
|||
"baseline": "1.58.0-a",
|
||||
"port-version": 0
|
||||
},
|
||||
"cppduals": {
|
||||
"baseline": "0.9.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"cppfs": {
|
||||
"baseline": "1.3.0",
|
||||
"port-version": 4
|
||||
|
|
|
|||
9
versions/c-/cppduals.json
Normal file
9
versions/c-/cppduals.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "406b71b85b52c82862c268bc2367edacadda5338",
|
||||
"version": "0.9.2",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue