From 10b73657a2ca84df6eaac412b8934ead9ed4a15c Mon Sep 17 00:00:00 2001 From: Andreas Fink Date: Tue, 8 Jun 2010 20:03:38 +0000 Subject: [PATCH] *fix* battery needs to add definition of course --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.45.2