--- a/QTfrontend/CMakeLists.txt Fri Apr 24 16:53:38 2009 +0000
+++ b/QTfrontend/CMakeLists.txt Sun Apr 26 15:45:06 2009 +0000
@@ -28,7 +28,7 @@
# Done
include_directories(.)
-set(CMAKE_CXX_FLAGS "-Wall")
+set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
if(WIN32 AND NOT UNIX)
set(HEDGEWARS_BINDIR ".")
@@ -192,4 +192,11 @@
target_link_libraries(hedgewars
${HW_LINK_LIBS})
-install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin)
+
+if(APPLE)
+ set (target_dir ".")
+else(APPLE)
+ set (target_dir "bin")
+endif(APPLE)
+
+install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})