QTfrontend/CMakeLists.txt
changeset 2203 6bd39d75e0dd
parent 2200 8192be6e3aef
child 2212 6b5da1a2765a
equal deleted inserted replaced
2202:29508a2924c2 2203:6bd39d75e0dd
    25 endif(UNIX)
    25 endif(UNIX)
    26 
    26 
    27 # Done
    27 # Done
    28 include_directories(.)
    28 include_directories(.)
    29 
    29 
    30 set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
    30 set(CMAKE_CXX_FLAGS "-Wall -pipe")
       
    31 set(CMAKE_CXX_FLAGS_RELEASE "-w -O2 -fomit-frame-pointer")
       
    32 set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
    31 
    33 
    32 if(WIN32 AND NOT UNIX)
    34 if(WIN32 AND NOT UNIX)
    33 	set(HEDGEWARS_BINDIR ".")
    35 	set(HEDGEWARS_BINDIR ".")
    34 	set(HEDGEWARS_DATADIR "../share/")
    36 	set(HEDGEWARS_DATADIR "../share/")
    35 else(WIN32 AND NOT UNIX)
    37 else(WIN32 AND NOT UNIX)
   205 endif(WIN32 AND NOT UNIX)
   207 endif(WIN32 AND NOT UNIX)
   206 
   208 
   207 target_link_libraries(hedgewars
   209 target_link_libraries(hedgewars
   208 	${HW_LINK_LIBS})
   210 	${HW_LINK_LIBS})
   209 
   211 
   210 
       
   211 if(APPLE)
       
   212 	set (target_dir ".")
       
   213 else(APPLE)
       
   214 	set (target_dir "bin")
       
   215 endif(APPLE)
       
   216 
       
   217 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   212 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})