]> Dogcows Code - chaz/tint2/blob - src/tint2conf/CMakeLists.txt
tint2conf : follow freedesktop icon theme specification
[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_T2C 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_T2C_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 properties.c
23 theme_view.c )
24 link_directories( ${X11_T2C_LIBRARY_DIRS}
25 ${GLIB2_LIBRARY_DIRS}
26 ${GOBJECT2_LIBRARY_DIRS}
27 ${IMLIB2_LIBRARY_DIRS}
28 ${GTHREAD2_LIBRARY_DIRS}
29 ${GTK2_LIBRARY_DIRS} )
30 add_executable( tint2conf ${SOURCES} )
31 target_link_libraries( tint2conf ${X11_T2C_LIBRARIES}
32 ${GLIB2_LIBRARIES}
33 ${GOBJECT2_LIBRARIES}
34 ${IMLIB2_LIBRARIES}
35 ${GTHREAD2_LIBRARIES}
36 ${GTK2_LIBRARIES} )
37
38 add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" )
39 set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" )
40 set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )
41
42 install( TARGETS tint2conf DESTINATION bin )
43 install( PROGRAMS tintwizard.py DESTINATION bin )
44 install( FILES taskbar.svg DESTINATION share/icons/hicolor/scalable/apps )
45 install( FILES tint2conf.desktop DESTINATION share/applications )
This page took 0.029864 seconds and 4 git commands to generate.