vcpkg/ports/libcaer/portfile.cmake
Kai Pastor 54bf862901
[libcaer,dv-processing] Port fixes, cleanup (#30098)
* [libcaer] Fix libusb dependency, cleanup

* [dv-processing] Fix config race, cleanup

* Add tools feature [skip actions]

* WIP [skip actions]

* WIP [skip actions]

* Finish changes

* Fix comment

* CR requests
2023-03-15 17:17:26 -07:00

29 lines
877 B
CMake

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.com/inivation/
OUT_SOURCE_PATH SOURCE_PATH
REPO dv/libcaer
REF 933dfa60a138091afb03014f8c24183bab7bba4e
SHA512 f3ac74bb4cfc4077e5a226307f66a9b8b263201d2342d9e61ee98a23f95e7897895da9f148b4e910535779f779a26f5c192925386a99a70e9d22540a5421d646
HEAD_REF master
PATCHES
fix-libusb.diff
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE # writes to include/libcaer/libcaer.h
OPTIONS
-DENABLE_OPENCV=ON
-DEXAMPLES_INSTALL=OFF
-DBUILD_CONFIG_VCPKG=ON
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")