equal
deleted
inserted
replaced
|
1 set(pas2c_sources |
|
2 Main.hs |
|
3 PascalBasics.hs |
|
4 PascalParser.hs |
|
5 PascalPreprocessor.hs |
|
6 PascalUnitSyntaxTree.hs |
|
7 pas2c.hs |
|
8 ) |
|
9 |
|
10 set(pas2c_main ${hedgewars_SOURCE_DIR}/tools/pas2c/Main.hs) |
|
11 |
|
12 set(ghc_flags |
|
13 --make ${pas2c_main} |
|
14 -i${hedgewars_SOURCE_DIR}/tools/pas2c/ |
|
15 -o ${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX} |
|
16 -odir ${CMAKE_CURRENT_BINARY_DIR} |
|
17 -hidir ${CMAKE_CURRENT_BINARY_DIR} |
|
18 ${haskell_flags}) |
|
19 |
|
20 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}" |
|
21 COMMAND "${ghc_executable}" |
|
22 ARGS ${ghc_flags} |
|
23 MAIN_DEPENDENCY ${hwserv_main} |
|
24 DEPENDS ${hwserver_sources} |
|
25 ) |
|
26 |
|
27 add_custom_target(pas2c ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}") |
|
28 |