X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2FCMakeLists.txt;h=0ec906dfdc3851f34e2b254120adb878237a0528;hb=caa0f8fbb901def18eab94a2e7f0131705967c5e;hp=c44ad1e04d83c8d759c5a7272982ab1a08b83e2c;hpb=f9b3fb96571db1b9f67000a907e540888097cf11;p=chaz%2Ftint2 diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt index c44ad1e..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 taskbar.svg DESTINATION share/icons/hicolor/scalable/apps ) -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})" )