Full support for out-of-source build
authorunc0rr
Sun, 03 Feb 2008 17:02:20 +0000
changeset 782 e2d2b84aa776
parent 781 4101f0f1c0b9
child 783 4f59db6f147d
Full support for out-of-source build
hedgewars/CMakeLists.txt
share/hedgewars/Data/Music/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
 	)
--- 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} ";")