Page 1 of 1

Run script before running program

Posted: Wed Sep 18, 2013 7:28 pm
by slimmeke
Hi guys

I'm a new user of the CodeLite IDE. I love different functions that I can't find in VS or other C++ IDE.
But 2 function I can't find.

First
Is it possible to run a script (for copying all dll files in the running directory) after every build is finished?

Second
Is it possible to tell CodeLite that the running directory is not in the debug or release folder (of my project) but in the folder of the project?
Now I must copy all my image files in the debug folder.

Re: Run script before running program

Posted: Wed Sep 18, 2013 10:42 pm
by solewalker
Yes, there is pre build and post build command options.

You could find it, at project->settings->Pre / Post build Commands
To copy all .dll files after your build you should write this simple command, add it to post build.

Code: Select all

copy /Y source_folder\*.dll destination_folder 
Here, folder path is relative to current (project) directory, for me, my 'lib' folder is one directory above my current (project) directory and 'Debug' folder is in the same directory as the project. So, the command to copy all *.dll files from 'lib' to 'Debug' folder is

Code: Select all

copy /Y ..\lib\*.dll Debug
Image

Hope that helps :)

Re: Run script before running program

Posted: Thu Sep 19, 2013 9:49 am
by slimmeke
Tnx solewalker this did the job for me.