mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-04 23:38:25 -05:00
35 lines
950 B
CMake
35 lines
950 B
CMake
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO microsoft/APSI
|
||
|
REF 6365cb774b81a2a731334c656db21e5fdfb92870
|
||
|
SHA512 f21d710a345663aeb35035565c55fd900076589d087a03a1ad7df8b8004ae0e059196f3c94ee63b5ad815a858e5404eea34ae203f7778d4190fd323fd08b7084
|
||
|
HEAD_REF main
|
||
|
)
|
||
|
|
||
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||
|
FEATURES
|
||
|
log4cplus APSI_USE_LOG4CPLUS
|
||
|
zeromq APSI_USE_ZMQ
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
DISABLE_PARALLEL_CONFIGURE
|
||
|
OPTIONS
|
||
|
"-DAPSI_BUILD_TESTS=OFF"
|
||
|
"-DAPSI_BUILD_CLI=OFF"
|
||
|
${FEATURE_OPTIONS}
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "APSI" CONFIG_PATH "lib/cmake/APSI-0.7")
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
||
|
|
||
|
vcpkg_copy_pdbs()
|