2019-05-28 14:32:49 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/observer-ptr-lite
|
2019-05-30 16:39:20 +08:00
|
|
|
REF v0.4.0
|
|
|
|
SHA512 4e53d8e0ce595604880bda423440071e7c207dd63e7b6bfa09cc7a870a010f09c51c31e640142c565ce261c4911acab13c6e9f5970853ad8fc2da3e4034ab7d7
|
2019-05-28 14:32:49 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-28 14:32:49 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNSOP_OPT_BUILD_TESTS=OFF
|
|
|
|
-DNSOP_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-28 14:32:49 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
2019-05-30 16:39:20 +08:00
|
|
|
CONFIG_PATH lib/cmake/${PORT}
|
|
|
|
)
|
2019-05-28 14:32:49 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:14 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-28 14:32:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2023-03-02 02:39:14 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-05-28 14:32:49 +08:00
|
|
|
)
|