mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Revert "Add FindLibUSB.cmake for libftdi"
This reverts commit dfe5845b3c.
This commit is contained in:
@@ -248,8 +248,6 @@ if(NOT WIN32)
|
|||||||
target_link_libraries(icsneocpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(icsneocpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
||||||
find_package(PCAP REQUIRED)
|
find_package(PCAP REQUIRED)
|
||||||
target_link_libraries(icsneocpp PUBLIC ${PCAP_LIBRARY})
|
target_link_libraries(icsneocpp PUBLIC ${PCAP_LIBRARY})
|
||||||
find_package(LibUSB REQUIRED)
|
|
||||||
target_link_libraries(icsneocpp PUBLIC LibUSB::LibUSB)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# googletest
|
# googletest
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
find_package(PkgConfig)
|
|
||||||
pkg_check_modules(LibUSB QUIET libusb)
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(LibUSB
|
|
||||||
REQUIRED_VARS
|
|
||||||
LibUSB_INCLUDE_DIRS
|
|
||||||
LibUSB_LIBRARIES
|
|
||||||
)
|
|
||||||
|
|
||||||
if(LibUSB_FOUND AND NOT TARGET LibUSB::LibUSB)
|
|
||||||
add_library(LibUSB::LibUSB INTERFACE IMPORTED)
|
|
||||||
set_target_properties(LibUSB::LibUSB PROPERTIES
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${LibUSB_INCLUDE_DIRS}"
|
|
||||||
INTERFACE_LINK_LIBRARIES "${LibUSB_LIBRARIES}"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
Reference in New Issue
Block a user