gameServer/CMakeLists.txt
changeset 10109 91d126fbd7bd
parent 10090 a471a7bbc339
child 11838 8f730ba4ca3c
equal deleted inserted replaced
10108:c68cf030eded 10109:91d126fbd7bd
     1 
     1 
     2 include(${CMAKE_MODULE_PATH}/utils.cmake)
     2 include(${CMAKE_MODULE_PATH}/utils.cmake)
     3 
     3 
     4 find_package_or_disable(GHC NOSERVER)
     4 find_package_or_disable(GHC NOSERVER)
       
     5 
       
     6 include(${CMAKE_MODULE_PATH}/CheckHaskellModuleExists.cmake)
       
     7 
       
     8 check_haskell_module_exists("Control.Exception" mask 1 base)
       
     9 check_haskell_module_exists("Data.Map" size 1 containers)
       
    10 check_haskell_module_exists("Data.Vector" length 1 vector)
       
    11 check_haskell_module_exists("Data.ByteString" pack 1 bytestring)
       
    12 check_haskell_module_exists("Text.Show.ByteString" putDigit 1 bytestring-show)
       
    13 check_haskell_module_exists("Network.BSD" getHostName 0 network)
       
    14 check_haskell_module_exists("Data.Time" getCurrentTime 0 time)
       
    15 check_haskell_module_exists("Control.Monad.State" fix 1 mtl)
       
    16 check_haskell_module_exists("Codec.Binary.Base64" encode 1 dataenc)
       
    17 check_haskell_module_exists("System.Log.Logger" warningM 1 hslogger)
       
    18 check_haskell_module_exists("System.Process" createProcess 3 process)
       
    19 check_haskell_module_exists("Data.ByteString.Lazy.UTF8" decode 1 utf8-string)
       
    20 check_haskell_module_exists("Data.Digest.Pure.SHA" sha1 1 SHA)
       
    21 check_haskell_module_exists("System.Entropy" openHandle 0 entropy)
       
    22 check_haskell_module_exists("Codec.Compression.Zlib" decompress 1 zlib)
       
    23 check_haskell_module_exists("System.Random" getStdGen 0 random)
       
    24 
       
    25 # this one needs type signatures to work
       
    26 # check_haskell_module_exists("Control.DeepSeq" deepseq 2 deepseq)
       
    27 
       
    28 
     5 
    29 
     6 set(hwserver_sources
    30 set(hwserver_sources
     7     OfficialServer/DBInteraction.hs
    31     OfficialServer/DBInteraction.hs
     8     Actions.hs
    32     Actions.hs
     9     ClientIO.hs
    33     ClientIO.hs