Eclipse CDT4 generator - No source files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse CDT4 generator - No source files

Dixon, Shane

I’m generating an eclipse project and whenever I import the project, all the files are there except for the source and header files.  I had a similar problem when generating “Visual Studio 9 2008” projects ( I was missing the header files).  I fixed that by adding all the .h files to my project_SRCS variable so that they all now show up in VS9, but how do I get this to show up in Eclipse?  My build platform is Windows XP SP3.

 

 

--

Shane Dixon

Linux Engineer


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse CDT4 generator - No source files

Eric Noulard
2009/9/11 Dixon, Shane <[hidden email]>:
> I’m generating an eclipse project and whenever I import the project, all the
> files are there except for the source and header files.  I had a similar
> problem when generating “Visual Studio 9 2008” projects ( I was missing the
> header files).  I fixed that by adding all the .h files to my project_SRCS
> variable so that they all now show up in VS9, but how do I get this to show
> up in Eclipse?  My build platform is Windows XP SP3.

Should work see:http://www.vtk.org/Wiki/Eclipse_CDT4_Generator

1) If you are building in-source then nothing special happen
2) If you are building out-of-source then you'll have a linked ressource
    in your CDT project

Which version of CMake are you using?
Which version of Eclipse+CDT are you using?


--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse CDT4 generator - No source files

Dixon, Shane
Eric,

I read through the link you sent me and tried again and now I can see the source files, but they show up as a subdirectory in eclipse.  For example, I have a folder called ProjectName/src.  In eclipse, I see src, but it has only CMakeLists.txt but there's a folder called ProjectName/src that has the actual files in it.  It's a little strange having two directories called "src", but it seems to be working as expected.  Thanks for the link.

--
Shane

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Eric Noulard
Sent: Saturday, September 12, 2009 3:08 AM
To: CMake ML
Subject: Re: [CMake] Eclipse CDT4 generator - No source files

2009/9/11 Dixon, Shane <[hidden email]>:
> I'm generating an eclipse project and whenever I import the project, all the
> files are there except for the source and header files.  I had a similar
> problem when generating "Visual Studio 9 2008" projects ( I was missing the
> header files).  I fixed that by adding all the .h files to my project_SRCS
> variable so that they all now show up in VS9, but how do I get this to show
> up in Eclipse?  My build platform is Windows XP SP3.

Should work see:http://www.vtk.org/Wiki/Eclipse_CDT4_Generator

1) If you are building in-source then nothing special happen
2) If you are building out-of-source then you'll have a linked ressource
    in your CDT project

Which version of CMake are you using?
Which version of Eclipse+CDT are you using?


--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake