The attached tarball replaces the current build system with a new one, incorporating most of remimegret's ideas. I refined it a bit and added some comments. With this system, dependencies are correctly tracked and out-of-source builds are cleanly possible.
I don't submit a diff because almost every single line in the CMakeList.txts changes (there are whitespace changes, partly due to an inconsistent indentation in the current CMakeList.txt). However, the files are heavily commented.
These files assume the existence of a Widget/ directory, see 1591368.
Thomas
revamped build system
Logged In: YES
user_id=1240556
Originator: NO
The posted patch is missing the following sub-directories:
Examples
Parallel
Scripts
They can be added by simple 'ADD_SUBDIRECTORY' commands
I'll post a new patch if that is preferred.
Thomas
Logged In: YES
user_id=1126202
Originator: NO
I tested out this build system and there are a few issues. I was able to correct the problem of copying files to themselves when using the same directory for the source and binary tree. However, the script files (*.m) are not being installed with "make install". Also, warnings for deprecated calls appear for every .oct file build.
Finally, Dragan has recently improved the original build system, including similar features of this proposed build system. I am not sure which one we should go with.
Jonathan