[mlpack] Change the header file directory structure (#40223)

This commit is contained in:
MonicaLiu 2024-08-02 11:23:53 -07:00 committed by GitHub
parent c44d3b5b36
commit 6c2141103d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 4 deletions

View File

@ -8,8 +8,10 @@ vcpkg_from_github(
)
# Copy the header files
file(GLOB HEADERS "${SOURCE_PATH}/src/*.hpp" "${SOURCE_PATH}/src/mlpack/*.hpp")
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack")
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")
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")

View File

@ -1,4 +1,4 @@
The package mlpack is header only and can be used from CMake via:
find_path(MLPACK_INCLUDE_DIRS "mlpack/mlpack.hpp")
find_path(MLPACK_INCLUDE_DIRS "mlpack.hpp")
target_include_directories(main PRIVATE ${MLPACK_INCLUDE_DIRS})

View File

@ -1,6 +1,7 @@
{
"name": "mlpack",
"version": "4.3.0",
"port-version": 1,
"description": "mlpack is an intuitive, fast, and flexible header-only C++ machine learning library with bindings to other languages.",
"homepage": "https://github.com/mlpack/mlpack",
"license": "BSD-3-Clause",

View File

@ -5874,7 +5874,7 @@
},
"mlpack": {
"baseline": "4.3.0",
"port-version": 0
"port-version": 1
},
"mman": {
"baseline": "git-f5ff813",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f3c84cbe875f9fb8e012180e81ef11b5d3c012b2",
"version": "4.3.0",
"port-version": 1
},
{
"git-tree": "7439b5dbdc37394f6bb291343d634642d919f9d1",
"version": "4.3.0",