1 vcpkg_from_git(OUT_SOURCE_PATH SOURCE_PATH
2 URL https://github.com/tqfx/${PORT}.git
7 vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS_RELEASE
11 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13 pkgconfig LIBA_PKGCONFIG
17 vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH}
18 OPTIONS -DBUILD_TESTING=OFF ${FEATURE_OPTIONS}
19 OPTIONS_RELEASE ${OPTIONS_RELEASE}
27 vcpkg_fixup_pkgconfig()
30 vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
32 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
34 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
35 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
38 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)