mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 00:51:36 +08:00
28 lines
889 B
CMake
28 lines
889 B
CMake
|
vcpkg_fail_port_install(ON_TARGET "UWP" "iOS" "Android" ON_ARCH "x86" "arm")
|
||
|
|
||
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO DragonJoker/Ashes
|
||
|
REF 01066539d667b21a20c97c2a70d9bf17555c8cc0
|
||
|
SHA512 f335d99ff044b388494cbbf7cbde3c9ee46eaecdc9339fc7f45fa781d23635dde3d3eaa237ed466ce50e5c1ea6e2729d8b5a6cc3930535d1252e564f32d6b778
|
||
|
)
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
-DCMAKE_INSTALL_PREFIX=${CURRENT_INSTALLED_DIR}
|
||
|
-DPROJECTS_USE_PRECOMPILED_HEADERS=OFF
|
||
|
-DVCPKG_PACKAGE_BUILD=ON
|
||
|
-DASHES_BUILD_TEMPLATES=OFF
|
||
|
-DASHES_BUILD_TESTS=OFF
|
||
|
-DASHES_BUILD_INFO=OFF
|
||
|
-DASHES_BUILD_SAMPLES=OFF
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ashes)
|
||
|
|
||
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ashes RENAME copyright)
|