2022-11-22 01:04:06 +08:00
|
|
|
# header-only library
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mlpack/mlpack
|
2023-07-25 01:59:57 +08:00
|
|
|
REF "${VERSION}"
|
2024-10-15 15:25:51 +08:00
|
|
|
SHA512 fd1612a2689e7e54bcbebb0b9da7d20aa6fe2fce395d544d476136d8de7f63a638bbbbab1bc2d00991649bcdf66ee6493ffdeed28c42121f98c82ee208c35947
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-11-22 01:04:06 +08:00
|
|
|
# Copy the header files
|
2024-08-03 02:23:53 +08:00
|
|
|
file(GLOB HEADERS_SRC "${SOURCE_PATH}/src/*.hpp")
|
|
|
|
file(GLOB HEADERS_MLPACK "${SOURCE_PATH}/src/mlpack/*.hpp")
|
|
|
|
file(COPY ${HEADERS_SRC} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
|
|
file(COPY ${HEADERS_MLPACK} DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack")
|
2022-11-22 01:04:06 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/src/mlpack/methods/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack/methods")
|
|
|
|
file(COPY "${SOURCE_PATH}/src/mlpack/core/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack/core")
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2022-11-22 01:04:06 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT.txt")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|