X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2FCMakeLists.txt;h=5526c7d5e7626fc830a53e380c2cc7a52fd1bc6c;hb=b0daed8dd52ebaa40fa993e5b9f23c823937c120;hp=815c1b71c8c04e322d4907802f4418250d418d4c;hpb=3c02bd129791a09ba87ad24212c8d33835a83319;p=chaz%2Ftint2 diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt index 815c1b7..5526c7d 100644 --- a/src/tint2conf/CMakeLists.txt +++ b/src/tint2conf/CMakeLists.txt @@ -2,7 +2,7 @@ project(tint2conf) cmake_minimum_required(VERSION 2.6) include( FindPkgConfig ) -pkg_check_modules( X11 REQUIRED x11 xrender ) +pkg_check_modules( X11_T2C 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 ) @@ -10,7 +10,7 @@ pkg_check_modules( GTHREAD2 REQUIRED gthread-2.0 ) pkg_check_modules( GTK2 REQUIRED gtk+-x11-2.0 ) include_directories( ../util - ${X11_INCLUDE_DIRS} + ${X11_T2C_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${GOBJECT2_INCLUDE_DIRS} ${IMLIB2_INCLUDE_DIRS} @@ -20,20 +20,32 @@ include_directories( ../util set(SOURCES ../util/common.c main.c properties.c + properties_rw.c theme_view.c ) +link_directories( ${X11_T2C_LIBRARY_DIRS} + ${GLIB2_LIBRARY_DIRS} + ${GOBJECT2_LIBRARY_DIRS} + ${IMLIB2_LIBRARY_DIRS} + ${GTHREAD2_LIBRARY_DIRS} + ${GTK2_LIBRARY_DIRS} ) add_executable( tint2conf ${SOURCES} ) -target_link_libraries( tint2conf ${X11_LIBRARIES} +target_link_libraries( tint2conf ${X11_T2C_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES} ${IMLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES} ${GTK2_LIBRARIES} ) +if ( NOT DATADIR ) + set( DATADIR share ) +endif( NOT DATADIR ) + add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" ) -set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS -Wall ) -#set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed) +set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" ) +set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" ) install( TARGETS tint2conf DESTINATION bin ) install( PROGRAMS tintwizard.py DESTINATION bin ) -install( FILES tint2conf.png tint2conf.svg DESTINATION share/pixmaps ) -install( FILES tint2conf.desktop DESTINATION share/applications ) +install( FILES taskbar.svg DESTINATION ${DATADIR}/icons/hicolor/scalable/apps ) +install( FILES tint2conf.desktop DESTINATION ${DATADIR}/applications ) +install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )