--- a/gameServer/CMakeLists.txt Fri Apr 24 16:53:38 2009 +0000
+++ b/gameServer/CMakeLists.txt Sun Apr 26 15:45:06 2009 +0000
@@ -38,4 +38,11 @@
add_custom_target(hedgewars-server ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}")
-install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin)
+
+if(APPLE)
+ set (target_dir ".")
+else(APPLE)
+ set (target_dir "bin")
+endif(APPLE)
+
+install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})