2019-05-02 06:19:12 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://gitlab.com
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cmocka/cmocka
|
2020-08-20 12:20:03 +08:00
|
|
|
REF 672c5cee79eb412025c3dd8b034e611c1f119055
|
|
|
|
SHA512 e02ffe780698ce3930aceb1b927f7d48c932c6bb251a32b1f4ab44ecb4ff6bfe5c2a6b9e2dfede49cd4cc1d68a8bb903ef1d26c28536abf3581a9d803287aa0a
|
2019-05-02 06:19:12 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-02 06:19:12 +08:00
|
|
|
OPTIONS
|
2020-08-20 12:20:03 +08:00
|
|
|
-DWITH_CMOCKERY_SUPPORT=ON
|
2019-05-02 06:19:12 +08:00
|
|
|
-DUNIT_TESTING=OFF
|
|
|
|
-DWITH_EXAMPLES=OFF
|
2020-08-20 12:20:03 +08:00
|
|
|
-DPICKY_DEVELOPER=OFF
|
2019-05-02 06:19:12 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-02 06:19:12 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-05-02 06:19:12 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-05-02 06:19:12 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|