]> Dogcows Code - chaz/tint2/blob - src/tint2conf/CMakeLists.txt
start tint2conf work
[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 properties_rw.c
24 theme_view.c )
25 link_directories( ${X11_T2C_LIBRARY_DIRS}
26 ${GLIB2_LIBRARY_DIRS}
27 ${GOBJECT2_LIBRARY_DIRS}
28 ${IMLIB2_LIBRARY_DIRS}
29 ${GTHREAD2_LIBRARY_DIRS}
30 ${GTK2_LIBRARY_DIRS} )
31 add_executable( tint2conf ${SOURCES} )
32 target_link_libraries( tint2conf ${X11_T2C_LIBRARIES}
33 ${GLIB2_LIBRARIES}
34 ${GOBJECT2_LIBRARIES}
35 ${IMLIB2_LIBRARIES}
36 ${GTHREAD2_LIBRARIES}
37 ${GTK2_LIBRARIES} )
38
39 if ( NOT DATADIR )
40 set( DATADIR share )
41 endif( NOT DATADIR )
42
43 add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" )
44 set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" )
45 set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )
46
47 install( TARGETS tint2conf DESTINATION bin )
48 install( PROGRAMS tintwizard.py DESTINATION bin )
49 install( FILES taskbar.svg DESTINATION ${DATADIR}/icons/hicolor/scalable/apps )
50 install( FILES tint2conf.desktop DESTINATION ${DATADIR}/applications )
51 install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )
This page took 0.033404 seconds and 4 git commands to generate.