2019-02-02 13:20:06 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO arrayfire/forge
|
2021-07-29 03:06:21 +08:00
|
|
|
REF v1.0.8
|
|
|
|
SHA512 08e5eb89d80f7fa3310f0eb37481492b5c1dfff00b33c308169862d8b25cf93ad1d9c0db78667c0207a7f6f8ca4046c196bd3a987af839ea1864b49c738ee8e3
|
2019-02-02 13:20:06 +08:00
|
|
|
HEAD_REF master
|
2021-05-12 01:39:03 +08:00
|
|
|
PATCHES cmake_config.patch
|
2019-02-02 13:20:06 +08:00
|
|
|
)
|
2023-01-18 03:34:22 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/CMakeModules/FindOpenGL.cmake")
|
2019-02-02 13:20:06 +08:00
|
|
|
|
2023-01-18 03:34:22 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-02 13:20:06 +08:00
|
|
|
OPTIONS
|
|
|
|
-DFG_BUILD_DOCS=OFF
|
|
|
|
-DFG_BUILD_EXAMPLES=OFF
|
|
|
|
-DFG_INSTALL_BIN_DIR=bin
|
2023-01-18 03:34:22 +08:00
|
|
|
-DFG_INSTALL_CMAKE_DIR=share/forge
|
2019-02-02 13:20:06 +08:00
|
|
|
)
|
|
|
|
|
2023-01-18 03:34:22 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2019-02-02 13:20:06 +08:00
|
|
|
|
|
|
|
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/bin/* ${CURRENT_PACKAGES_DIR}/debug/bin/*)
|
|
|
|
list(FILTER DLLS EXCLUDE REGEX "forge\\.dll\$")
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
2020-01-09 08:33:48 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
2023-03-25 13:05:07 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/examples
|
|
|
|
${CURRENT_PACKAGES_DIR}/examples
|
2019-02-02 13:20:06 +08:00
|
|
|
${DLLS}
|
|
|
|
)
|
|
|
|
|
2023-03-25 13:05:07 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/.github/LICENSE")
|