2022-06-16 03:07:15 +08:00
|
|
|
vcpkg_from_gitlab(
|
2022-08-06 14:57:32 +08:00
|
|
|
GITLAB_URL https://gitlab.com/inivation/
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dv/libcaer
|
|
|
|
REF 933dfa60a138091afb03014f8c24183bab7bba4e
|
2022-10-25 07:59:04 +08:00
|
|
|
SHA512 f3ac74bb4cfc4077e5a226307f66a9b8b263201d2342d9e61ee98a23f95e7897895da9f148b4e910535779f779a26f5c192925386a99a70e9d22540a5421d646
|
2022-08-06 14:57:32 +08:00
|
|
|
HEAD_REF master
|
2023-03-16 08:17:26 +08:00
|
|
|
PATCHES
|
|
|
|
fix-libusb.diff
|
2022-06-16 03:07:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-08-06 14:57:32 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-03-16 08:17:26 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE # writes to include/libcaer/libcaer.h
|
2022-08-06 14:57:32 +08:00
|
|
|
OPTIONS
|
|
|
|
-DENABLE_OPENCV=ON
|
|
|
|
-DEXAMPLES_INSTALL=OFF
|
|
|
|
-DBUILD_CONFIG_VCPKG=ON
|
2022-06-16 03:07:15 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-03-16 08:17:26 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2022-06-16 03:07:15 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-03-16 08:17:26 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|