mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
1e4a2a7115
Co-authored-by: winsoft666 <winsoft666@outlook.com> Co-authored-by: FrankXie <v-frankxie@microsoft.com> Co-authored-by: admin <admin@windows.com> Co-authored-by: paipai <noexist@gmail.com> Co-authored-by: Frank <1433351828@qq.com>
29 lines
880 B
CMake
29 lines
880 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO winsoft666/zoe
|
|
HEAD_REF master
|
|
REF "v${VERSION}"
|
|
SHA512 301a3b6797d1bd3370c18e20c58235a53b8a67aa46ba3c9fdc0db549755fb6ae3a0de749cc3f076f3dd4d556169c4ba2d040abb632f7bc302a449a0b7ea65eb2
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ZOE_BUILD_SHARED_LIBS)
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" ZOE_USE_STATIC_CRT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DZOE_BUILD_SHARED_LIBS:BOOL=${ZOE_BUILD_SHARED_LIBS}
|
|
-DZOE_USE_STATIC_CRT:BOOL=${ZOE_USE_STATIC_CRT}
|
|
-DZOE_BUILD_TESTS:BOOL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/zoe)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|