2019-07-16 08:24:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eliaskosunen/scnlib
|
2023-10-03 08:27:58 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 5dc2cc0f0817710453c7741cb61df46b4d4a43af0ec5cbbba77e3b6fb055e906840c232f92df5c3f3a9643191268922f059eacb798978767c717cc3578eb117d
|
2019-07-16 08:24:53 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-16 08:24:53 +08:00
|
|
|
OPTIONS
|
|
|
|
-DSCN_TESTS=OFF
|
|
|
|
-DSCN_EXAMPLES=OFF
|
|
|
|
-DSCN_BENCHMARKS=OFF
|
|
|
|
-DSCN_DOCS=OFF
|
|
|
|
-DSCN_RANGES=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/scn)
|
2019-07-16 08:24:53 +08:00
|
|
|
|
2020-05-27 12:39:17 +08:00
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:29 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/scn"
|
|
|
|
)
|
2019-07-16 08:24:53 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2020-05-27 12:39:17 +08:00
|
|
|
RENAME copyright)
|