From: Andreas Fink Date: Tue, 8 Jun 2010 20:03:38 +0000 (+0000) Subject: *fix* battery needs to add definition of course X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=commitdiff_plain;h=10b73657a2ca84df6eaac412b8934ead9ed4a15c *fix* battery needs to add definition of course --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e5aa32..6a6d799 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )