2022-08-02 04:31:06 +08:00
|
|
|
set(VERSION 2.1)
|
|
|
|
set(RELEASE 3)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO cunit/CUnit
|
2022-08-02 04:31:06 +08:00
|
|
|
REF "${VERSION}-${RELEASE}"
|
|
|
|
FILENAME "CUnit-${VERSION}-${RELEASE}.tar.bz2"
|
2020-06-27 06:06:30 +08:00
|
|
|
SHA512 547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-06-17 06:19:20 +08:00
|
|
|
|
2022-08-02 04:31:06 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-06-17 06:19:20 +08:00
|
|
|
|
2022-08-02 04:31:06 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
"-DVERSION=${VERSION}"
|
|
|
|
"-DRELEASE=${RELEASE}"
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
2017-06-17 06:19:20 +08:00
|
|
|
)
|
|
|
|
|
2022-08-02 04:31:06 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-cunit)
|
2017-06-17 06:19:20 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-06-27 06:06:30 +08:00
|
|
|
|
2022-08-02 04:31:06 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|