mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 01:19:00 +08:00
42 lines
1.0 KiB
CMake
42 lines
1.0 KiB
CMake
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||
|
|
||
|
vcpkg_from_gitlab(
|
||
|
GITLAB_URL https://gitlab.com
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO Teuniz/EDFlib
|
||
|
REF v1.21
|
||
|
SHA512 6153cec44e26c0b9cd2f7e00d014f38ee7bdc444015eaf6169fecaf4aa16b04a552d3755ac83d48728de8dac7fe22cb2d0c9566f0fdc967e15bc3f000f456106
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||
|
|
||
|
vcpkg_check_features(
|
||
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||
|
FEATURES
|
||
|
tools BUILD_TOOLS
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
${FEATURE_OPTIONS}
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
|
||
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-EDFlib)
|
||
|
|
||
|
if ("tools" IN_LIST FEATURES)
|
||
|
vcpkg_copy_tools(
|
||
|
TOOL_NAMES
|
||
|
sine_generator
|
||
|
sweep_generator
|
||
|
AUTO_CLEAN
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|