# HG changeset patch # User unc0rr # Date 1202058140 0 # Node ID e2d2b84aa77614f029daa1b336982fffb564fe8a # Parent 4101f0f1c0b95118090b43e72c3a09a9c8dd6800 Full support for out-of-source build diff -r 4101f0f1c0b9 -r e2d2b84aa776 hedgewars/CMakeLists.txt --- a/hedgewars/CMakeLists.txt Sat Feb 02 15:20:41 2008 +0000 +++ b/hedgewars/CMakeLists.txt Sun Feb 03 17:02:20 2008 +0000 @@ -2,7 +2,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/proto.inc) set(fpc_tryexe fpc) -set(hwengine_project "hwengine.dpr") +set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwengine.dpr) set(engine_sources ${hwengine_project} @@ -38,7 +38,7 @@ HHHandlers.inc SinTable.inc options.inc - playlist.inc + ${CMAKE_CURRENT_BINARY_DIR}/playlist.inc ${CMAKE_CURRENT_BINARY_DIR}/proto.inc tunsetborder.inc ) diff -r 4101f0f1c0b9 -r e2d2b84aa776 share/hedgewars/Data/Music/CMakeLists.txt --- a/share/hedgewars/Data/Music/CMakeLists.txt Sat Feb 02 15:20:41 2008 +0000 +++ b/share/hedgewars/Data/Music/CMakeLists.txt Sun Feb 03 17:02:20 2008 +0000 @@ -2,7 +2,7 @@ list(LENGTH BaseMusic PlayListLength) -set(PlayListINCFile ${hedgewars_SOURCE_DIR}/hedgewars/playlist.inc) +set(PlayListINCFile ${CMAKE_BINARY_DIR}/hedgewars/playlist.inc) file(WRITE ${PlayListINCFile} "const cPlayListLength = " ${PlayListLength} ";")