--- data/CMakeLists.txt.orig
+++ data/CMakeLists.txt
@@ -1,7 +1,14 @@
-add_subdirectory(translations)
-
+if(WITH_NLS)
+ add_subdirectory(translations)
+endif(WITH_NLS)
+ 
 if(NOT WIN32)
-install(FILES dxirc-fox.desktop dxirc-qt.desktop DESTINATION share/applications)
+  if(BUILD_FOX)
+    install(FILES dxirc-fox.desktop DESTINATION share/applications)
+  endif(BUILD_FOX)
+  if(BUILD_QT)
+     install(FILES dxirc-qt.desktop DESTINATION share/applications)
+  endif(BUILD_QT)
 endif(NOT WIN32)
 install(FILES icons/dxirc.png DESTINATION share/icons/hicolor/48x48/apps)
 install(DIRECTORY icons/ DESTINATION share/dxirc/icons FILES_MATCHING PATTERN "*.png" PATTERN "*.smiley" PATTERN ".svn" EXCLUDE)
