]> Dogcows Code - chaz/tint2/blob - src/tint2conf/CMakeLists.txt
76f8069fe6ab4b640853e8e80f74ee59cfd2d78b
[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 if ( NOT DATADIR )
39 set( DATADIR share )
40 endif( NOT DATADIR )
41
42 add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" )
43 set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" )
44 set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )
45
46 install( TARGETS tint2conf DESTINATION bin )
47 install( PROGRAMS tintwizard.py DESTINATION bin )
48 install( FILES taskbar.svg DESTINATION share/icons/hicolor/scalable/apps )
49 install( FILES tint2conf.desktop DESTINATION share/applications )
50 install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )
This page took 0.029783 seconds and 3 git commands to generate.