aboutsummaryrefslogtreecommitdiff
path: root/swaybar/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/CMakeLists.txt')
-rw-r--r--swaybar/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/swaybar/CMakeLists.txt b/swaybar/CMakeLists.txt
index f59a48fd..373719de 100644
--- a/swaybar/CMakeLists.txt
+++ b/swaybar/CMakeLists.txt
@@ -5,7 +5,13 @@ include_directories(
${PANGO_INCLUDE_DIRS}
${JSONC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
+ ${DBUS_INCLUDE_DIRS}
)
+if (enable-tray)
+ file(GLOB tray
+ tray/*.c
+ )
+endif()
add_executable(swaybar
main.c
@@ -14,6 +20,8 @@ add_executable(swaybar
bar.c
status_line.c
ipc.c
+ event_loop.c
+ ${tray}
)
target_link_libraries(swaybar
@@ -24,6 +32,7 @@ target_link_libraries(swaybar
${CAIRO_LIBRARIES}
${PANGO_LIBRARIES}
${JSONC_LIBRARIES}
+ ${DBUS_LIBRARIES}
)
if (WITH_GDK_PIXBUF)
@@ -32,6 +41,8 @@ if (WITH_GDK_PIXBUF)
)
endif()
+target_link_libraries(swaybar rt)
+
install(
TARGETS swaybar
RUNTIME