gameServer/CMakeLists.txt
changeset 2401 2a694ea2a437
parent 2203 6bd39d75e0dd
child 2406 2e757b32991e
equal deleted inserted replaced
2400:2422ea85d100 2401:2a694ea2a437
     1 find_program(ghc_executable ghc)
     1 find_program(ghc_executable ghc)
     2 
     2 
     3 if (NOT ghc_executable)
     3 if(NOT ghc_executable)
     4 	message(FATAL_ERROR "Cannot find GHC")
     4 	message(FATAL_ERROR "Cannot find GHC")
     5 endif(NOT ghc_executable)
     5 endif(NOT ghc_executable)
       
     6 
       
     7 if(APPLE)
       
     8 	find_package(GMP REQUIRED)
       
     9 endif(APPLE)
     6 
    10 
     7 set(hwserver_sources
    11 set(hwserver_sources
     8 	OfficialServer/DBInteraction.hs
    12 	OfficialServer/DBInteraction.hs
     9 	Actions.hs
    13 	Actions.hs
    10 	ClientIO.hs
    14 	ClientIO.hs
    27 	-i${hedgewars_SOURCE_DIR}/gameServer
    31 	-i${hedgewars_SOURCE_DIR}/gameServer
    28 	-o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}
    32 	-o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}
    29 	-odir ${CMAKE_CURRENT_BINARY_DIR}
    33 	-odir ${CMAKE_CURRENT_BINARY_DIR}
    30 	-hidir ${CMAKE_CURRENT_BINARY_DIR})
    34 	-hidir ${CMAKE_CURRENT_BINARY_DIR})
    31 
    35 
    32 if( NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "Release")
    36 if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "Release")
    33 set(ghc_flags
    37 set(ghc_flags
    34 	-w
    38 	-w
    35 	-O2
    39 	-O2
    36 	${ghc_flags}
    40 	${ghc_flags}
    37 )
    41 )