gameServer/CMakeLists.txt
changeset 2015 d2848d723690
parent 1979 912e450d4db2
child 2203 6bd39d75e0dd
--- 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})