equal
deleted
inserted
replaced
1 |
1 |
|
2 find_package(GHC REQUIRED) |
|
3 if(NOT ${GHC_FOUND}) |
|
4 message(FATAL_ERROR "Missing Glasgow Haskell Compiler! Rerun cmake with -DNOSERVER=on to disable hosting LAN games") |
|
5 endif() |
2 |
6 |
3 set(hwserver_sources |
7 set(hwserver_sources |
4 OfficialServer/DBInteraction.hs |
8 OfficialServer/DBInteraction.hs |
5 Actions.hs |
9 Actions.hs |
6 ClientIO.hs |
10 ClientIO.hs |
32 -odir ${CMAKE_CURRENT_BINARY_DIR} |
36 -odir ${CMAKE_CURRENT_BINARY_DIR} |
33 -hidir ${CMAKE_CURRENT_BINARY_DIR} |
37 -hidir ${CMAKE_CURRENT_BINARY_DIR} |
34 ${haskell_flags}) |
38 ${haskell_flags}) |
35 |
39 |
36 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" |
40 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}" |
37 COMMAND "${ghc_executable}" |
41 COMMAND "${GHC_EXECUTABLE}" |
38 ARGS ${ghc_flags} |
42 ARGS ${ghc_flags} |
39 MAIN_DEPENDENCY ${hwserv_main} |
43 MAIN_DEPENDENCY ${hwserv_main} |
40 DEPENDS ${hwserver_sources} |
44 DEPENDS ${hwserver_sources} |
41 ) |
45 ) |
42 |
46 |