early-access version 2853
This commit is contained in:
32
externals/vcpkg/ports/quantlib/portfile.cmake
vendored
Executable file
32
externals/vcpkg/ports/quantlib/portfile.cmake
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO lballabio/QuantLib
|
||||
REF QuantLib-v1.26
|
||||
SHA512 597dcb4aa3e2701bea758c7b0c62ca0b303a16eda5f324b349ba4e8cc011f6a256fb26d5c42f2bb432da06df1c7b5ec208195e1104e620b69d2a7e8265fd6470
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if (VCPKG_TARGET_IS_WINDOWS)
|
||||
# This can (and should) be removed if QuantLib ever supports dynamically linking on Windows
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DQL_BUILD_BENCHMARK=OFF
|
||||
-DQL_BUILD_EXAMPLES=OFF
|
||||
-DQL_BUILD_TEST_SUITE=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME QuantLib CONFIG_PATH lib/cmake/QuantLib)
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Install custom usage
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
4
externals/vcpkg/ports/quantlib/usage
vendored
Executable file
4
externals/vcpkg/ports/quantlib/usage
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
The package quantlib provides CMake targets:
|
||||
|
||||
find_package(QuantLib CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE QuantLib::QuantLib)
|
||||
51
externals/vcpkg/ports/quantlib/vcpkg.json
vendored
Executable file
51
externals/vcpkg/ports/quantlib/vcpkg.json
vendored
Executable file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "quantlib",
|
||||
"version": "1.26",
|
||||
"port-version": 1,
|
||||
"description": "The QuantLib C++ library",
|
||||
"homepage": "https://www.quantlib.org/",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "!(windows & !staticcrt)",
|
||||
"dependencies": [
|
||||
"boost-accumulators",
|
||||
"boost-algorithm",
|
||||
"boost-any",
|
||||
"boost-array",
|
||||
"boost-assert",
|
||||
"boost-assign",
|
||||
"boost-atomic",
|
||||
"boost-bind",
|
||||
"boost-config",
|
||||
"boost-core",
|
||||
"boost-date-time",
|
||||
"boost-dynamic-bitset",
|
||||
"boost-format",
|
||||
"boost-function",
|
||||
"boost-functional",
|
||||
"boost-iterator",
|
||||
"boost-lexical-cast",
|
||||
"boost-math",
|
||||
"boost-multi-array",
|
||||
"boost-multiprecision",
|
||||
"boost-optional",
|
||||
"boost-preprocessor",
|
||||
"boost-random",
|
||||
"boost-serialization",
|
||||
"boost-signals2",
|
||||
"boost-smart-ptr",
|
||||
"boost-thread",
|
||||
"boost-tuple",
|
||||
"boost-type-traits",
|
||||
"boost-ublas",
|
||||
"boost-unordered",
|
||||
"boost-utility",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user