vcpkg/ports/cunit/portfile.cmake

22 lines
610 B
CMake
Raw Normal View History

vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO cunit/CUnit
REF 2.1-3
FILENAME "CUnit-2.1-3.tar.bz2"
SHA512 547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487
)
2017-06-17 06:19:20 +08:00
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
2017-06-17 06:19:20 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
2017-06-17 06:19:20 +08:00
)
vcpkg_install_cmake()
2017-06-17 06:19:20 +08:00
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)