]> Dogcows Code - chaz/tint2/commitdiff
*fix* battery needs to add definition of course
authorAndreas Fink <andreas.fink85@googlemail.com>
Tue, 8 Jun 2010 20:03:38 +0000 (20:03 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Tue, 8 Jun 2010 20:03:38 +0000 (20:03 +0000)
CMakeLists.txt

index 4e5aa323e148471af039f8d06d8fac2a4b559839..6a6d799571225e6ee4b8e4a073a8be295b21fb8e 100644 (file)
@@ -11,6 +11,7 @@ pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
 pkg_check_modules( IMLIB2 REQUIRED imlib2 )
 
 include_directories( src
+                     src/battery
                      src/clock
                      src/systray
                      src/taskbar
@@ -23,7 +24,6 @@ include_directories( src
                      ${GLIB2_INCLUDE_DIRS}
                      ${GOBJECT2_INCLUDE_DIRS}
                      ${IMLIB2_INCLUDE_DIRS} )
-message("Cairo cflags: ${CAIRO_INCLUDE_DIRS}" )
 
 set(SOURCES src/config.c
             src/panel.c
@@ -42,6 +42,7 @@ set(SOURCES src/config.c
 option( ENABLE_BATTERY "Enable battery support in tint2" OFF )
 if ( ENABLE_BATTERY )
   set( SOURCES ${SOURCES} src/battery/battery.c )
+  add_definitions( -DENABLE_BATTERY )
 endif( ENABLE_BATTERY )
 
 
This page took 0.01939 seconds and 4 git commands to generate.