From 45e82915ed8b523bcb9d7c016a8c205eb7b178dc Mon Sep 17 00:00:00 2001 From: "Andreas.Fink85" Date: Tue, 8 Jun 2010 20:03:38 +0000 Subject: [PATCH] *fix* battery needs to add definition of course git-svn-id: http://tint2.googlecode.com/svn/trunk@471 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- 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 )