aboutsummaryrefslogtreecommitdiff
path: root/irc/dxirc/files/patch-data_CMakeLists.txt
blob: 8fd88abe113b8cccef6c6f7d1a6500191832d07e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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)