2010-06-08 20:18:13 +00:00
|
|
|
project(tint2conf)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
include( FindPkgConfig )
|
2010-06-14 06:20:41 +00:00
|
|
|
pkg_check_modules( X11_T2C REQUIRED x11 xrender )
|
2010-06-08 20:18:13 +00:00
|
|
|
pkg_check_modules( GLIB2 REQUIRED glib-2.0 )
|
|
|
|
pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 )
|
|
|
|
pkg_check_modules( IMLIB2 REQUIRED imlib2 )
|
|
|
|
pkg_check_modules( GTHREAD2 REQUIRED gthread-2.0 )
|
|
|
|
pkg_check_modules( GTK2 REQUIRED gtk+-x11-2.0 )
|
|
|
|
|
|
|
|
include_directories( ../util
|
2010-06-14 06:20:41 +00:00
|
|
|
${X11_T2C_INCLUDE_DIRS}
|
2010-06-08 20:18:13 +00:00
|
|
|
${GLIB2_INCLUDE_DIRS}
|
|
|
|
${GOBJECT2_INCLUDE_DIRS}
|
|
|
|
${IMLIB2_INCLUDE_DIRS}
|
|
|
|
${GTHREAD2_INCLUDE_DIRS}
|
|
|
|
${GTK2_INCLUDE_DIRS} )
|
|
|
|
|
|
|
|
set(SOURCES ../util/common.c
|
|
|
|
main.c
|
2010-06-12 22:17:45 +00:00
|
|
|
properties.c
|
2010-06-08 20:18:13 +00:00
|
|
|
theme_view.c )
|
2010-06-14 06:20:41 +00:00
|
|
|
link_directories( ${X11_T2C_LIBRARY_DIRS}
|
2010-06-13 13:02:53 +00:00
|
|
|
${GLIB2_LIBRARY_DIRS}
|
|
|
|
${GOBJECT2_LIBRARY_DIRS}
|
|
|
|
${IMLIB2_LIBRARY_DIRS}
|
|
|
|
${GTHREAD2_LIBRARY_DIRS}
|
|
|
|
${GTK2_LIBRARY_DIRS} )
|
2010-06-08 20:18:13 +00:00
|
|
|
add_executable( tint2conf ${SOURCES} )
|
2010-06-14 06:20:41 +00:00
|
|
|
target_link_libraries( tint2conf ${X11_T2C_LIBRARIES}
|
2010-06-08 20:18:13 +00:00
|
|
|
${GLIB2_LIBRARIES}
|
|
|
|
${GOBJECT2_LIBRARIES}
|
|
|
|
${IMLIB2_LIBRARIES}
|
|
|
|
${GTHREAD2_LIBRARIES}
|
|
|
|
${GTK2_LIBRARIES} )
|
|
|
|
|
2010-06-12 21:21:06 +00:00
|
|
|
add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" )
|
2010-06-14 06:20:41 +00:00
|
|
|
set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" )
|
|
|
|
set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )
|
2010-06-09 09:14:56 +00:00
|
|
|
|
2010-06-08 20:18:13 +00:00
|
|
|
install( TARGETS tint2conf DESTINATION bin )
|
2010-06-09 09:14:56 +00:00
|
|
|
install( PROGRAMS tintwizard.py DESTINATION bin )
|
2010-11-03 14:57:08 +00:00
|
|
|
install( FILES taskbar.svg DESTINATION share/icons/hicolor/scalable/apps )
|
2010-06-11 15:37:53 +00:00
|
|
|
install( FILES tint2conf.desktop DESTINATION share/applications )
|