also these two files are dependency (they are not in the list because they are special pas2c files)
--- a/project_files/hwc/CMakeLists.txt Tue Jun 18 19:19:35 2013 +0200
+++ b/project_files/hwc/CMakeLists.txt Tue Jun 18 19:33:10 2013 +0200
@@ -37,7 +37,10 @@
-i "${CMAKE_SOURCE_DIR}/hedgewars"
-o "${CMAKE_CURRENT_BINARY_DIR}"
-a "${CMAKE_CURRENT_BINARY_DIR}"
- DEPENDS pas2c ${engine_sources_pas}
+ DEPENDS pas2c
+ ${engine_sources_pas}
+ ${CMAKE_SOURCE_DIR}/hedgewars/pas2cSystem.pas
+ ${CMAKE_SOURCE_DIR}/hedgewars/pas2cRedo.pas
)
add_custom_target(engine_c DEPENDS ${engine_sources})