]> Dogcows Code - chaz/tint2/commitdiff
*add* tint2conf cmake file
authorAndreas Fink <andreas.fink85@googlemail.com>
Tue, 8 Jun 2010 20:18:13 +0000 (20:18 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Tue, 8 Jun 2010 20:18:13 +0000 (20:18 +0000)
CMakeLists.txt
src/tint2conf/CMakeLists.txt [new file with mode: 0644]

index 6a6d799571225e6ee4b8e4a073a8be295b21fb8e..a3fb2bc3db1def8e00b1668f15bfbe7b8553aad8 100644 (file)
@@ -45,6 +45,11 @@ if ( ENABLE_BATTERY )
   add_definitions( -DENABLE_BATTERY )
 endif( ENABLE_BATTERY )
 
+option( ENABLE_TINT2CONF "Enable tint2conf. A tint2 theme switcher" ON )
+if ( ENABLE_TINT2CONF )
+  add_subdirectory( src/tint2conf )
+endif( ENABLE_TINT2CONF )
+
 
 add_executable(tint2 ${SOURCES})
 target_link_libraries( tint2 ${X11_LIBRARIES}
diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e3e02e1
--- /dev/null
@@ -0,0 +1,31 @@
+project(tint2conf)
+cmake_minimum_required(VERSION 2.6)
+
+include( FindPkgConfig )
+pkg_check_modules( X11 REQUIRED x11 xrender )
+pkg_check_modules( GLIB2 REQUIRED glib-2.0 )
+pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
+pkg_check_modules( IMLIB2 REQUIRED imlib2 )
+pkg_check_modules( GTHREAD2 REQUIRED gthread-2.0 )
+pkg_check_modules( GTK2 REQUIRED gtk+-x11-2.0 )
+
+include_directories( ../util
+                     ${X11_INCLUDE_DIRS}
+                     ${GLIB2_INCLUDE_DIRS}
+                     ${GOBJECT2_INCLUDE_DIRS}
+                     ${IMLIB2_INCLUDE_DIRS}
+                     ${GTHREAD2_INCLUDE_DIRS}
+                     ${GTK2_INCLUDE_DIRS} )
+
+set(SOURCES ../util/common.c
+            main.c
+            theme_view.c )
+add_executable( tint2conf ${SOURCES} )
+target_link_libraries( tint2conf ${X11_LIBRARIES}
+                                 ${GLIB2_LIBRARIES}
+                                 ${GOBJECT2_LIBRARIES}
+                                 ${IMLIB2_LIBRARIES}
+                                 ${GTHREAD2_LIBRARIES}
+                                 ${GTK2_LIBRARIES} )
+
+install( TARGETS tint2conf DESTINATION bin )
This page took 0.026461 seconds and 4 git commands to generate.