2010-06-08 20:18:13 +00:00
|
|
|
project(tint2conf)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
include( FindPkgConfig )
|
|
|
|
pkg_check_modules( X11 REQUIRED x11 xrender )
|
|
|
|
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
|
|
|
|
${X11_INCLUDE_DIRS}
|
|
|
|
${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-13 13:02:53 +00:00
|
|
|
link_directories( ${X11_LIBRARY_DIRS}
|
|
|
|
${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} )
|
|
|
|
target_link_libraries( tint2conf ${X11_LIBRARIES}
|
|
|
|
${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-12 09:27:18 +00:00
|
|
|
set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS -Wall )
|
2010-06-12 07:45:16 +00:00
|
|
|
#set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed)
|
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-06-11 15:37:53 +00:00
|
|
|
install( FILES tint2conf.png tint2conf.svg DESTINATION share/pixmaps )
|
|
|
|
install( FILES tint2conf.desktop DESTINATION share/applications )
|