mirror of https://github.com/labapart/gattlib
explicitly link gattlib library in examples
parent
647f3d3c10
commit
096acbe837
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue