hi
I am wondering if this is possible with lazarus: I want to save all the temporarily files, such as the object files, into a folder, say "$App/debug", and the generated executable into the main application source folder ($App).
For the first part, I can do it using the compiler options dialog in the project menu. But the binary will be generated in this folder too. This caused troubles for me. When my program starts, I used ExtractFilePath(Application.ExeName) to get the current folder to access some assumed sub-folder structures, such as $App/data, $App/utils etc. However, all of these subfolders were put under the main source code directory, not the debug sub folder.
Alternatively, would it be possible to specify the Application.ExeName so that it remains to be $App, despite that the binary is from $App/debug?
thanks