--- a/share/hedgewars/Data/misc/CMakeLists.txt Wed Oct 24 10:18:42 2012 +0100
+++ b/share/hedgewars/Data/misc/CMakeLists.txt Wed Oct 24 10:23:37 2012 +0100
@@ -1,9 +1,13 @@
-if(DEFINED DATA_INSTALL_DIR)
- set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR})
-else()
- set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)
+if(DEFINED DATA_INSTALL_DIR)
+ set(HEDGEWARS_DATADIR ${DATA_INSTALL_DIR}
+)
+else()
+ set(HEDGEWARS_DATADIR ${CMAKE_INSTALL_PREFIX}/share/)
endif()
+
+if(UNIX AND NOT APPLE)
configure_file(hwengine.desktop.in hwengine.desktop)
+endif()
file(GLOB miscfiles *.xml *.desktop)