[vtkusers] [FORGED] Programming in Visual studio - How to include all the required directories in Visual studio.

BhanuKiranChaluvadi nthdimensionalreality at gmail.com
Thu Jun 23 01:53:27 EDT 2016


Thank you very much Gib Bogle..

After thinking for a while i came out with one more solution..

I create a CMakeLists.txt file  with simple program provided by you.
And i also created  myprogram.cxx file containing only my includes  and an
empty main function.

It looked like this 

////myProgram.cxx/////////////////////////
#include "vtkCylinderSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"                    // etc ...what ever need for
my project

int main()
{

return 0;
}
///////////////////////////////////
Now i used cmake 

And then i open the solution file in visual studio and started editing the
main function as usual. 

Now, i can take advantage of both cmake(i don't need the include all
libraries) and Visual studio (IDE - I get suggestion while editing).

Thanks again.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Programming-in-Visual-studio-How-to-include-all-the-required-directories-in-Visual-studio-tp5738856p5738860.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list