X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2FCMakeLists.txt;h=0ec906dfdc3851f34e2b254120adb878237a0528;hb=694d127008b23ab2296d305a218d491c931ff26e;hp=48fcd1f86bf247d347c64a1fa2d9f54582efbd65;hpb=b64bae44a6806f363c85cd7f5178d0a19b318b81;p=chaz%2Ftint2 diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt index 48fcd1f..0ec906d 100644 --- a/src/tint2conf/CMakeLists.txt +++ b/src/tint2conf/CMakeLists.txt @@ -35,11 +35,16 @@ target_link_libraries( tint2conf ${X11_T2C_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 -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})" )