diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-29 19:15:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-29 19:15:49 +0200 |
commit | 5798a655ed5a0db89c1d1282f6a9667794fea9c9 (patch) | |
tree | 9329e430047274b2258a07dc4c41134c064e04d5 /CMakeLists.txt | |
parent | 3f7b295629aed37ca746dce134f2e2de606a1c82 (diff) |
add device listing/matching functionality
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 17914a7..bdf8df4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,13 @@ ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") SET(SOURCES main.c) -SET(LIBS ubox blobmsg_json) + +find_package(PkgConfig) +pkg_check_modules(LIBUSB1 REQUIRED libusb-1.0) +ADD_DEFINITIONS(${LIBUSB1_CFLAGS}) +FIND_LIBRARY(libusb NAMES usb-1.0 HINTS ${LIBUSB1_LIBDIR}) + +SET(LIBS ubox blobmsg_json ${libusb}) IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3) |