diff --git a/examples/ble_scan/CMakeLists.txt b/examples/ble_scan/CMakeLists.txt index 2c26d3b..e00a4ac 100644 --- a/examples/ble_scan/CMakeLists.txt +++ b/examples/ble_scan/CMakeLists.txt @@ -24,8 +24,9 @@ cmake_minimum_required(VERSION 2.6) find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) +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} pthread) +target_link_libraries(ble_scan ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/discover/CMakeLists.txt b/examples/discover/CMakeLists.txt index be4c233..d2a3d21 100644 --- a/examples/discover/CMakeLists.txt +++ b/examples/discover/CMakeLists.txt @@ -24,8 +24,9 @@ cmake_minimum_required(VERSION 2.6) find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) +pkg_search_module(PCRE REQUIRED libpcre) set(discover_SRCS discover.c) add_executable(discover ${discover_SRCS}) -target_link_libraries(discover ${GATTLIB_LDFLAGS} pthread) +target_link_libraries(discover ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/gatttool/CMakeLists.txt b/examples/gatttool/CMakeLists.txt index fc75b3c..9b331c1 100644 --- a/examples/gatttool/CMakeLists.txt +++ b/examples/gatttool/CMakeLists.txt @@ -25,6 +25,7 @@ find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) pkg_search_module(GLIB REQUIRED glib-2.0) +pkg_search_module(PCRE REQUIRED libpcre) include_directories(${GLIB_INCLUDE_DIRS}) @@ -51,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} readline pthread) +target_link_libraries(gatttool ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} readline tinfo pthread) diff --git a/examples/nordic_uart/CMakeLists.txt b/examples/nordic_uart/CMakeLists.txt index ee12175..8b8a564 100644 --- a/examples/nordic_uart/CMakeLists.txt +++ b/examples/nordic_uart/CMakeLists.txt @@ -25,8 +25,9 @@ cmake_minimum_required(VERSION 2.6) find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) +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} pthread) +target_link_libraries(nordic_uart ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/notification/CMakeLists.txt b/examples/notification/CMakeLists.txt index 7a0747f..7042a21 100644 --- a/examples/notification/CMakeLists.txt +++ b/examples/notification/CMakeLists.txt @@ -26,9 +26,10 @@ find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) pkg_search_module(GLIB REQUIRED glib-2.0) +pkg_search_module(PCRE REQUIRED libpcre) include_directories(${GLIB_INCLUDE_DIRS}) set(notification_SRCS notification.c) add_executable(notification ${notification_SRCS}) -target_link_libraries(notification ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} pthread) +target_link_libraries(notification ${GATTLIB_LDFLAGS} ${GLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread) diff --git a/examples/read_write/CMakeLists.txt b/examples/read_write/CMakeLists.txt index 7eac946..9ffb324 100644 --- a/examples/read_write/CMakeLists.txt +++ b/examples/read_write/CMakeLists.txt @@ -25,8 +25,9 @@ cmake_minimum_required(VERSION 2.6) find_package(PkgConfig REQUIRED) pkg_search_module(GATTLIB REQUIRED gattlib) +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} pthread) +target_link_libraries(read_write ${GATTLIB_LDFLAGS} ${PCRE_LIBRARIES} pthread)