explicitly link gattlib library in examples

pull/37/merge
Marcus Georgi 2017-07-19 14:47:44 +02:00 committed by Olivier Martin
parent 647f3d3c10
commit 096acbe837
6 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)