Page 1 of 1

adding existing code files to a project

Posted: Fri Oct 09, 2020 6:39 pm
by eam
Hi
I need to add existing cpp and h files to my project(X). Those files are in another project(Y) in aonther workspace.
What is the best way in codelite to add pre-existing code files to a new project(X) without being linked to(or affecting) the files in project(Y)?
Thanx

Re: adding existing code files to a project

Posted: Sat Oct 10, 2020 6:20 pm
by eranif
Right click on the project -> Add an existing files

CodeLite does not copy the files, it just add a reference to the file in the .project file so it will know to compile it
So your file is not affected (you can see that double clicking the file in the workspace view, opens the same file editor in CodeLite)