2018-01-04 12:02:59 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CaptainCrowbar/unicorn-lib
|
2018-08-01 08:03:35 +08:00
|
|
|
REF 6d33ec8d828c3740cc6fd66ef03f395526450ad6
|
|
|
|
SHA512 4f802b4889e0683bd156a3dcc670cff737b532169f092d99434e2877b152bd2963984000a00bf928e11ba5142e10c5af8e0986f2c92fa6b7251d53cb688bd96a
|
2018-01-04 12:02:59 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-06-16 16:54:01 +08:00
|
|
|
PREFER_NINJA
|
2018-02-26 03:37:23 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DUNICORN_LIB_SKIP_HEADERS=ON
|
2018-01-04 12:02:59 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/unicorn-lib RENAME copyright)
|