KDevelop targets, subprojects
Any IDE experts out there? I had a game engine and game editor that I was coding up as two separate projects. Turned out that was the dumb way because I was using about 15 common files between them so when I changed the file in one project I had to remember to change it in the other one.
So I've combined them into the same project but I'm not exactly a KDevelop expert.
I opened the Automake Manager on the right side in the engine project and basically removed everything. Then I made three directories in the src directory. engine, editor, shared. Then I moved the shared files to shared and the engine-only files to engine. Then I grabbed all the editor-only files from the editor project and copied them into editor. Then I made three targets, one for each of them. Then I added all .h and .cpp files for each project to each target. Then I compiled the shared as a library. Then I included the library with the other two projects and compiled them. It works pretty well.
But now when I want to debug I have to have my Data/ folder in the debug directory or the images won't load. Why is the working directory always the debug folder? I can change the working directory if I just execute it but if I want to debug I don't know how to change the working directory. Now suppose I compile it as optimized someday. I will have to have another copy of the Data/ folder in the optimized directory. There has to be another way.
And why did the working directory get moved to the debug folder? Before I combined my engine and editor into one project the working directory for debugging was always debug/src. How did it get moved down a directory? Where do you control that at?
Last edited by icecubeflower; 04-19-2009 at 06:51 PM.
|