]> Dogcows Code - chaz/tint2/commitdiff
*add* call gtk-update-cache on install
authorAndreas Fink <andreas.fink85@googlemail.com>
Sat, 6 Nov 2010 22:22:48 +0000 (22:22 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Sat, 6 Nov 2010 22:22:48 +0000 (22:22 +0000)
CMakeLists.txt
src/tint2conf/CMakeLists.txt

index bd94435f1bdd3a4e84482864f3ba6cfca450cfbb..b6a216275958bd1dee9629bff8369fca0005e36c 100644 (file)
@@ -65,17 +65,17 @@ if( ENABLE_BATTERY )
   add_definitions( -DENABLE_BATTERY )
 endif( ENABLE_BATTERY )
 
+set( MANDIR share/man CACHE PATH "Directory for man pages" )
+set( DATADIR share CACHE PATH "Directory for shared data" )
+set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" )
+set( DOCDIR share/doc/tint2 CACHE PATH "Directory for documentation files" )
+
 if( ENABLE_TINT2CONF )
   add_definitions( -DHAVE_VERSION_H )
   add_subdirectory( src/tint2conf )
   add_dependencies( tint2conf version )
 endif( ENABLE_TINT2CONF )
 
-set( MANDIR share/man CACHE PATH "Directory for man pages" )
-set( DATADIR share CACHE PATH "Directory for shared data" )
-set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" )
-set( DOCDIR share/doc/tint2 CACHE PATH "Directory for documentation files" )
-
 add_custom_target( version ALL "${PROJECT_SOURCE_DIR}/get_svnrev.sh" "\"${PROJECT_SOURCE_DIR}\"" )
 
 link_directories( ${X11_LIBRARY_DIRS}
index c44ad1e04d83c8d759c5a7272982ab1a08b83e2c..76f8069fe6ab4b640853e8e80f74ee59cfd2d78b 100644 (file)
@@ -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})" )
This page took 0.025317 seconds and 4 git commands to generate.