]> Dogcows Code - chaz/tint2/blob - src/tint2conf/CMakeLists.txt
*del* autoconf files not used anymore
[chaz/tint2] / src / tint2conf / CMakeLists.txt
1 project(tint2conf)
2 cmake_minimum_required(VERSION 2.6)
3
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 )
11
12 include_directories( ../util
13 ${X11_INCLUDE_DIRS}
14 ${GLIB2_INCLUDE_DIRS}
15 ${GOBJECT2_INCLUDE_DIRS}
16 ${IMLIB2_INCLUDE_DIRS}
17 ${GTHREAD2_INCLUDE_DIRS}
18 ${GTK2_INCLUDE_DIRS} )
19
20 set(SOURCES ../util/common.c
21 main.c
22 theme_view.c )
23 add_executable( tint2conf ${SOURCES} )
24 target_link_libraries( tint2conf ${X11_LIBRARIES}
25 ${GLIB2_LIBRARIES}
26 ${GOBJECT2_LIBRARIES}
27 ${IMLIB2_LIBRARIES}
28 ${GTHREAD2_LIBRARIES}
29 ${GTK2_LIBRARIES} )
30
31 set_target_properties(tint2conf PROPERTIES COMPILE_FLAGS -Wall)
32 set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed)
33
34 install( TARGETS tint2conf DESTINATION bin )
35 install( PROGRAMS tintwizard.py DESTINATION bin )
36 install( FILES tint2conf.png tint2conf.svg DESTINATION share/pixmaps )
37 install( FILES tint2conf.desktop DESTINATION share/applications )
This page took 0.037184 seconds and 5 git commands to generate.