From 096acbe83773e0d2283751eaadc150c0018ae52b Mon Sep 17 00:00:00 2001 From: Marcus Georgi Date: Wed, 19 Jul 2017 14:47:44 +0200 Subject: [PATCH] explicitly link gattlib library in examples --- examples/ble_scan/CMakeLists.txt | 2 +- examples/discover/CMakeLists.txt | 2 +- examples/gatttool/CMakeLists.txt | 2 +- examples/nordic_uart/CMakeLists.txt | 2 +- examples/notification/CMakeLists.txt | 2 +- examples/read_write/CMakeLists.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/ble_scan/CMakeLists.txt b/examples/ble_scan/CMakeLists.txt index e00a4ac..af3f884 100644 --- a/examples/ble_scan/CMakeLists.txt +++ b/examples/ble_scan/CMakeLists.txt @@ -29,4 +29,4 @@ pkg_search_module(PCRE REQUIRED libpcre) set(ble_scan_SRCS ble_scan.c) add_executable(ble_scan ${ble_scan_SRCS}) -target_link_libraries(ble_scan ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) +target_link_libraries(ble_scan ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/discover/CMakeLists.txt b/examples/discover/CMakeLists.txt index d2a3d21..113a96b 100644 --- a/examples/discover/CMakeLists.txt +++ b/examples/discover/CMakeLists.txt @@ -29,4 +29,4 @@ pkg_search_module(PCRE REQUIRED libpcre) set(discover_SRCS discover.c) add_executable(discover ${discover_SRCS}) -target_link_libraries(discover ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) +target_link_libraries(discover ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/gatttool/CMakeLists.txt b/examples/gatttool/CMakeLists.txt index 9b331c1..07f9fd9 100644 --- a/examples/gatttool/CMakeLists.txt +++ b/examples/gatttool/CMakeLists.txt @@ -52,4 +52,4 @@ endif() set(gatttool_SRCS gatttool.c interactive.c utils.c) add_executable(gatttool ${gatttool_SRCS}) -target_link_libraries(gatttool ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} readline tinfo pthread) +target_link_libraries(gatttool ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} readline tinfo pthread) diff --git a/examples/nordic_uart/CMakeLists.txt b/examples/nordic_uart/CMakeLists.txt index 8b8a564..70c1dcb 100644 --- a/examples/nordic_uart/CMakeLists.txt +++ b/examples/nordic_uart/CMakeLists.txt @@ -30,4 +30,4 @@ pkg_search_module(PCRE REQUIRED libpcre) set(nordic_uart_SRCS nordic_uart.c) add_executable(nordic_uart ${nordic_uart_SRCS}) -target_link_libraries(nordic_uart ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) +target_link_libraries(nordic_uart ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/notification/CMakeLists.txt b/examples/notification/CMakeLists.txt index 7042a21..10f58ad 100644 --- a/examples/notification/CMakeLists.txt +++ b/examples/notification/CMakeLists.txt @@ -32,4 +32,4 @@ include_directories(${GLIB_INCLUDE_DIRS}) set(notification_SRCS notification.c) add_executable(notification ${notification_SRCS}) -target_link_libraries(notification ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) +target_link_libraries(notification ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/read_write/CMakeLists.txt b/examples/read_write/CMakeLists.txt index 9ffb324..c796c2e 100644 --- a/examples/read_write/CMakeLists.txt +++ b/examples/read_write/CMakeLists.txt @@ -30,4 +30,4 @@ pkg_search_module(PCRE REQUIRED libpcre) set(read_write_SRCS read_write.c) add_executable(read_write ${read_write_SRCS}) -target_link_libraries(read_write ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) +target_link_libraries(read_write ${GATTLIB_LIBRARIES} ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread)