2 cmake_minimum_required(VERSION 2.6)
4 include( FindPkgConfig )
5 pkg_check_modules( X11 REQUIRED x11 xrender )
6 pkg_check_modules( GLIB2 REQUIRED glib-2.0 )
7 pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
8 pkg_check_modules( IMLIB2 REQUIRED imlib2 )
9 pkg_check_modules( GTHREAD2 REQUIRED gthread-2.0 )
10 pkg_check_modules( GTK2 REQUIRED gtk+-x11-2.0 )
12 include_directories( ../util
15 ${GOBJECT2_INCLUDE_DIRS}
16 ${IMLIB2_INCLUDE_DIRS}
17 ${GTHREAD2_INCLUDE_DIRS}
18 ${GTK2_INCLUDE_DIRS} )
20 set(SOURCES ../util/common.c
23 add_executable( tint2conf ${SOURCES} )
24 target_link_libraries( tint2conf ${X11_LIBRARIES}
31 set_target_properties(tint2conf PROPERTIES COMPILE_FLAGS -Wall)
32 set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed)
34 install( TARGETS tint2conf DESTINATION bin )
35 install( PROGRAMS tintwizard.py DESTINATION bin )