QTfrontend/CMakeLists.txt
changeset 2203 6bd39d75e0dd
parent 2200 8192be6e3aef
child 2212 6b5da1a2765a
--- a/QTfrontend/CMakeLists.txt	Sun Jun 28 16:44:04 2009 +0000
+++ b/QTfrontend/CMakeLists.txt	Sun Jun 28 16:54:51 2009 +0000
@@ -27,7 +27,9 @@
 # Done
 include_directories(.)
 
-set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
+set(CMAKE_CXX_FLAGS "-Wall -pipe")
+set(CMAKE_CXX_FLAGS_RELEASE "-w -O2 -fomit-frame-pointer")
+set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
 
 if(WIN32 AND NOT UNIX)
 	set(HEDGEWARS_BINDIR ".")
@@ -207,11 +209,4 @@
 target_link_libraries(hedgewars
 	${HW_LINK_LIBS})
 
-
-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})