X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2FCMakeLists.txt;h=76f8069fe6ab4b640853e8e80f74ee59cfd2d78b;hb=055e4228a91f9957771e44cbdc540f20b2c3aa17;hp=c44ad1e04d83c8d759c5a7272982ab1a08b83e2c;hpb=f9b3fb96571db1b9f67000a907e540888097cf11;p=chaz%2Ftint2 diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt index c44ad1e..76f8069 100644 --- a/src/tint2conf/CMakeLists.txt +++ b/src/tint2conf/CMakeLists.txt @@ -35,6 +35,10 @@ 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" ) @@ -43,3 +47,4 @@ install( TARGETS tint2conf DESTINATION bin ) install( PROGRAMS tintwizard.py DESTINATION bin ) install( FILES taskbar.svg DESTINATION share/icons/hicolor/scalable/apps ) install( FILES tint2conf.desktop DESTINATION share/applications ) +install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )