diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libusb-win32/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/libusb-win32/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/libusb-win32/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/libusb-win32/CMakeLists.txt b/vcpkg/ports/libusb-win32/CMakeLists.txt new file mode 100644 index 0000000..90e2870 --- /dev/null +++ b/vcpkg/ports/libusb-win32/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.5) +project(libusb-win32) + +set(lib_headers src/lusb0_usb.h) + +set(lib_srcs src/descriptors.c + src/error.c + src/install.c + src/registry.c + src/usb.c + src/windows.c + src/resource.rc + libusb0.def) + +add_library(libusb0 ${lib_srcs}) +target_include_directories(libusb0 PRIVATE "src/driver") +target_link_libraries(libusb0 setupapi) +target_compile_definitions(libusb0 PRIVATE LOG_APPNAME="libusb-dll") +set_target_properties(libusb0 PROPERTIES PREFIX "" IMPORT_PREFIX "") + +install( + TARGETS libusb0 + RUNTIME DESTINATION bin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib) + +install( + FILES ${lib_headers} + DESTINATION include)
\ No newline at end of file |