mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[cnl] Add new port (#5158)
This commit is contained in:
parent
38acd9fd02
commit
c292cdcc45
3
ports/cnl/CONTROL
Normal file
3
ports/cnl/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: cnl
|
||||
Version: 2019-01-09
|
||||
Description: A Compositional Numeric Library for C++
|
28
ports/cnl/portfile.cmake
Normal file
28
ports/cnl/portfile.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
# header-only library
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO johnmcfarlane/cnl
|
||||
REF 9f632898a4738b9e41de90e66d4f6ddb84bda08b
|
||||
SHA512 ffde0b5aa58e79b5a03eee588c0e43d17ab2ddb2ffb12508f9d1b0e05aa54bb6c653986f183ce339e73c562efd749af6bd3907d816c9f79bf48f1e84ded3ac13
|
||||
HEAD_REF develop
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
||||
# CMake integration test
|
||||
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
|
Loading…
x
Reference in New Issue
Block a user