adding existing code files to a project

General questions regarding the usage of CodeLite
eam
CodeLite Curious
Posts: 3
Joined: Sat Jun 20, 2020 7:57 pm
Genuine User: Yes
IDE Question: c++
Contact:

adding existing code files to a project

Post by eam » Fri Oct 09, 2020 6:39 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 6133
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding existing code files to a project

Post by eranif » Sat Oct 10, 2020 6:20 pm

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)
Make sure you have read the HOW TO POST thread

Post Reply