2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-11-26 04:47:41 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO unittest-cpp/unittest-cpp
|
|
|
|
REF v2.0.0
|
|
|
|
SHA512 39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab
|
|
|
|
HEAD_REF master
|
2021-06-11 02:48:54 +08:00
|
|
|
PATCHES
|
|
|
|
fix-include-path.patch
|
2017-11-23 23:11:38 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-11-17 04:53:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUTPP_INCLUDE_TESTS_IN_BUILD=OFF
|
2024-07-04 11:01:35 +08:00
|
|
|
-DUTPP_AMPLIFY_WARNINGS=OFF
|
2017-11-23 23:11:38 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-23 23:11:38 +08:00
|
|
|
|
2023-11-17 04:53:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/UnitTest++ PACKAGE_NAME unittest++)
|
2017-11-26 04:47:41 +08:00
|
|
|
|
2017-11-23 23:11:38 +08:00
|
|
|
# Handle copyright
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2017-11-23 23:11:38 +08:00
|
|
|
|
|
|
|
# Remove duplicate includes
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|