Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to visual studio and cmake. How do I add an existing project that someone else made to a solution of many projects while still referencing header files that the new project may reference?

Right now I cannot even add the project so the solution file sees it, let alone see the reference projects.

BTW: We are using opencv files from Intel RealSense camera samples.

What I have tried:

I have tried copying all of the projects I cloned from github into the same directory as the solution and right clicked on the solution to add a new project. I have also tried creating a new project from file: new:project from existing code, but it does not add it to the existing solution.
Posted
Updated 7-Jul-20 13:15pm
Comments
LoriPhysics 7-Jul-20 19:04pm    
I guess I do not have a project, but a file from github that has all of the makings of a project. My question should have been, "how do I turn a group of cloned github files to a project, then add it to an existing solution". I have used the team git repository, but have not been able to create a project from it.
Luc Pattyn 7-Jul-20 19:07pm    
I suggest you read the articles I referred, and if they don't help (I didn't check them) apply some more google foo.

There must be ready-to-use libraries for Windows, have a look here.

The alternative is to create a new project yourself, inside VS, and then add every source file to the project, by right-clicking the project in the "Solution Explorer" and choosing "Add"/probably "Existing Item". That could be hard if you have more than a few files though.
LoriPhysics 7-Jul-20 19:12pm    
Thanks for you help:) I am sifting through the thread now.
Luc Pattyn 7-Jul-20 19:21pm    
if you want an unmodified opencv, then pre-built libraries seem to be the way to go: see here.

1 solution

Hmm. Previous messages have vanished somehow.

Here is my suggestion, assuming pre-built Windows libraries would do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900