Skip to content

Commit

Permalink
ENABLE_GNOME_GDBUS flag added (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi authored Jan 7, 2025
1 parent 50bd995 commit e95c29e
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,28 @@ set_target_properties(${MODULE_NAME} PROPERTIES


if(ENABLE_GNOME_NETWORKMANAGER)
target_sources(${MODULE_NAME} PRIVATE NetworkManagerGnomeProxy.cpp
NetworkManagerGnomeWIFI.cpp
NetworkManagerGnomeEvents.cpp
NetworkManagerGnomeUtils.cpp )
target_include_directories(${MODULE_NAME} PRIVATE ${GLIB_INCLUDE_DIRS} ${LIBNM_INCLUDE_DIRS})
target_link_libraries(${MODULE_NAME} PRIVATE ${LIBNM_LIBRARIES})
if(ENABLE_GNOME_GDBUS)
message("networkmanager building with gdbus")
target_sources(${MODULE_NAME} PRIVATE
gdbus/NetworkManagerGdbusProxy.cpp
gdbus/NetworkManagerGdbusClient.cpp
gdbus/NetworkManagerGdbusEvent.cpp
gdbus/NetworkManagerGdbusMgr.cpp
gdbus/NetworkManagerGdbusUtils.cpp )
target_include_directories(${MODULE_NAME} PRIVATE ${GLIB_INCLUDE_DIRS} ${GIO_INCLUDE_DIRS} ${LIBNM_INCLUDE_DIRS})
target_link_libraries(${MODULE_NAME} PRIVATE ${GLIB_LIBRARIES} ${GIO_LIBRARIES})
else()
message("networkmanager building with libnm")
target_sources(${MODULE_NAME} PRIVATE
NetworkManagerGnomeProxy.cpp
NetworkManagerGnomeWIFI.cpp
NetworkManagerGnomeEvents.cpp
NetworkManagerGnomeUtils.cpp )
target_include_directories(${MODULE_NAME} PRIVATE ${GLIB_INCLUDE_DIRS} ${LIBNM_INCLUDE_DIRS})
target_link_libraries(${MODULE_NAME} PRIVATE ${LIBNM_LIBRARIES})
endif()
else()
message("networkmanager building with netsrvmgr")
target_sources(${MODULE_NAME} PRIVATE NetworkManagerRDKProxy.cpp)
target_include_directories(${MODULE_NAME} PRIVATE ${IARMBUS_INCLUDE_DIRS})
target_link_libraries(${MODULE_NAME} PRIVATE ${IARMBUS_LIBRARIES})
Expand Down

0 comments on commit e95c29e

Please sign in to comment.