Correctly added libusb
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(ipwndfu_rewrite_c C)
|
||||
project(ipwndfu_rewrite_c)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_FLAGS -g)
|
||||
@@ -7,4 +7,16 @@ set(CMAKE_C_FLAGS -g)
|
||||
add_executable(ipwndfu main.c
|
||||
exploit/libusb_helpers.c exploit/libusb_helpers.h
|
||||
exploit/exploit.c exploit/checkm8.h exploit/commands.c)
|
||||
target_link_libraries(ipwndfu usb-1.0)
|
||||
|
||||
add_library(libusb_checkm8
|
||||
libusb/config.h
|
||||
|
||||
libusb/libusb/core.c libusb/libusb/descriptor.c libusb/libusb/hotplug.c
|
||||
libusb/libusb/io.c libusb/libusb/strerror.c libusb/libusb/sync.c
|
||||
libusb/libusb/hotplug.h libusb/libusb/libusb.h libusb/libusb/libusbi.h libusb/libusb/version.h
|
||||
|
||||
libusb/libusb/os/linux_netlink.c libusb/libusb/os/linux_usbfs.c libusb/libusb/os/linux_udev.c
|
||||
libusb/libusb/os/threads_posix.c libusb/libusb/os/poll_posix.c
|
||||
libusb/libusb/os/linux_usbfs.h libusb/libusb/os/threads_posix.h libusb/libusb/os/poll_posix.h)
|
||||
|
||||
target_link_libraries(ipwndfu usb-1.0 libusb_checkm8)
|
||||
|
||||
Reference in New Issue
Block a user