mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-15 01:26:25 +02:00
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e606af7..f125f0e 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -22,18 +22,13 @@ set(pebble_le_SOURCES
|
|
src/util.cpp)
|
|
|
|
# Third-Party Dependencies
|
|
-add_subdirectory(third_party/SimpleBLE/simpleble EXCLUDE_FROM_ALL)
|
|
add_subdirectory(third_party/dbus_gatt EXCLUDE_FROM_ALL)
|
|
|
|
-set(SimpleBLE_INCLUDE_DIRS
|
|
- ${CMAKE_SOURCE_DIR}/third_party/SimpleBLE/simpleble/include
|
|
- ${CMAKE_SOURCE_DIR}/third_party/SimpleBLE/simplebluez/include
|
|
- ${CMAKE_SOURCE_DIR}/third_party/SimpleBLE/simpledbus/include
|
|
- ${CMAKE_BINARY_DIR}/third_party/SimpleBLE/simpleble/export)
|
|
-
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_search_module(GLIB REQUIRED glib-2.0)
|
|
pkg_search_module(DBus1 REQUIRED dbus-1)
|
|
+pkg_search_module(SimpleBLE REQUIRED simpleble)
|
|
+pkg_search_module(SimpleBLUEZ REQUIRED simplebluez)
|
|
|
|
# libpebble-le
|
|
add_library(pebble-le_o OBJECT ${pebble_le_SOURCES})
|
|
@@ -51,12 +46,13 @@ set_target_properties(pebble-le PROPERTIES
|
|
set_target_properties(pebble-le_static PROPERTIES
|
|
OUTPUT_NAME pebble-le)
|
|
|
|
-target_include_directories(pebble-le_o PRIVATE ${SimpleBLE_INCLUDE_DIRS} ${DBus1_INCLUDE_DIRS} ${GLIB_INCLUDE_DIRS})
|
|
+target_include_directories(pebble-le_o PRIVATE ${SimpleBLE_INCLUDE_DIRS} ${SimpleBLUEZ_INCLUDE_DIRS} ${DBus1_INCLUDE_DIRS} ${GLIB_INCLUDE_DIRS})
|
|
target_include_directories(pebble-le_o PUBLIC include ${CMAKE_BINARY_DIR}/exports)
|
|
|
|
target_link_libraries(pebble-le_o PUBLIC
|
|
dbus_gatt
|
|
- simpleble
|
|
+ ${SimpleBLE_LIBRARIES}
|
|
+ ${SimpleBLUEZ_LIBRARIES}
|
|
${DBus1_LIBRARIES}
|
|
${GLIB_LIBRARIES}
|
|
${GLIB_GIO_LIBRARIES})
|