26 lines
841 B
CMake
26 lines
841 B
CMake
# nanobind distributes source code to build on-demand.
|
|
# The source code is installed into the 'share/${PORT}' directory with
|
|
# subdirectories for source `src` and header `include` files
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wjakob/nanobind
|
|
REF "v${VERSION}"
|
|
SHA512 885668ee4ea9c551ccd60d2e056a90021badfeb7b358aeace184a23f9c2d34cb31a81ebe84db33fd6f15b7983dbb455d9c11f9367de091cb9b56c99d7634f9a0
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DNB_USE_SUBMODULE_DEPS:BOOL=OFF
|
|
-DNB_TEST:BOOL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|