2019-07-31 01:08:10 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cwzx/nngpp
|
2020-04-24 12:18:00 +08:00
|
|
|
REF cc5d2641babab165d8a9943817c46d36c6dc17c2 #v1.3.0
|
|
|
|
SHA512 76b78f5b39b24fae3820924abb5c2f8f51f1683c08211366668745196b184ee4b4c9b1fd2fc68e8f234a56b802a4a79249d173d1562af46046d19a4498222405
|
2019-07-31 01:08:10 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-31 01:08:10 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNNGPP_BUILD_DEMOS=OFF
|
|
|
|
-DNNGPP_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-31 01:08:10 +08:00
|
|
|
|
|
|
|
# Move CMake config files to the right place
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-07-31 01:08:10 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2019-07-31 01:08:10 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:14 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2019-07-31 01:08:10 +08:00
|
|
|
|