*add* first cmake based implementation (compiles already tint2, but needs more love for installing everything correctly)
This is just a test whether cmake can become an alternative to the current build process (I prefer cmake, because it is much faster and offers more possiblities) git-svn-id: http://tint2.googlecode.com/svn/trunk@470 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
87f02c57e6
commit
da9c699284
1 changed files with 58 additions and 0 deletions
58
CMakeLists.txt
Normal file
58
CMakeLists.txt
Normal file
|
@ -0,0 +1,58 @@
|
|||
project(tint2)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
include( FindPkgConfig )
|
||||
pkg_check_modules( X11 REQUIRED x11 xcomposite xdamage xinerama xrender xrandr )
|
||||
pkg_check_modules( PANGOCAIRO REQUIRED pangocairo )
|
||||
pkg_check_modules( PANGO REQUIRED pango )
|
||||
pkg_check_modules( CAIRO REQUIRED cairo )
|
||||
pkg_check_modules( GLIB2 REQUIRED glib-2.0 )
|
||||
pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
|
||||
pkg_check_modules( IMLIB2 REQUIRED imlib2 )
|
||||
|
||||
include_directories( src
|
||||
src/clock
|
||||
src/systray
|
||||
src/taskbar
|
||||
src/tooltip
|
||||
src/util
|
||||
${X11_INCLUDE_DIRS}
|
||||
${PANGOCAIRO_INCLUDE_DIRS}
|
||||
${PANGO_INCLUDE_DIRS}
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
${GOBJECT2_INCLUDE_DIRS}
|
||||
${IMLIB2_INCLUDE_DIRS} )
|
||||
message("Cairo cflags: ${CAIRO_INCLUDE_DIRS}" )
|
||||
|
||||
set(SOURCES src/config.c
|
||||
src/panel.c
|
||||
src/server.c
|
||||
src/tint.c
|
||||
src/clock/clock.c
|
||||
src/systray/systraybar.c
|
||||
src/taskbar/task.c
|
||||
src/taskbar/taskbar.c
|
||||
src/tooltip/tooltip.c
|
||||
src/util/area.c
|
||||
src/util/common.c
|
||||
src/util/timer.c
|
||||
src/util/window.c )
|
||||
|
||||
option( ENABLE_BATTERY "Enable battery support in tint2" OFF )
|
||||
if ( ENABLE_BATTERY )
|
||||
set( SOURCES ${SOURCES} src/battery/battery.c )
|
||||
endif( ENABLE_BATTERY )
|
||||
|
||||
|
||||
add_executable(tint2 ${SOURCES})
|
||||
target_link_libraries( tint2 ${X11_LIBRARIES}
|
||||
${PANGOCAIRO_LIBRARIES}
|
||||
${PANGO_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
${GLIB2_LIBRARIES}
|
||||
${GOBJECT2_LIBRARIES}
|
||||
${IMLIB2_LIBRARIES}
|
||||
rt )
|
||||
|
||||
install(TARGETS tint2 DESTINATION bin)
|
Loading…
Reference in a new issue