[CMake] adding files with Eclipse CDT4 Generator

Roland Waltersson rolles.dump at gmail.com
Mon May 25 08:26:27 EDT 2009


Thanks it works now. I did an out-of-source build but I forgot to clean some
cache files from earlier tries.

/ Roland


2009/5/25 Eric Noulard <eric.noulard at gmail.com>

> 2009/5/25 Roland Waltersson <rolles.dump at gmail.com>:
> > Hi I have a small sample project in Eclipse. cmake generates it fine
> > and it builds fine, but i can't see any source code files in the
> > project browser. This is my CMakeLists.txt file:
> >
> > cmake_minimum_required(VERSION 2.6)
> > project(WINCABase)
> > add_library(WINCABase constants.hpp exception.hpp version.hpp
> headersonly.cpp)
> >
> > And all the source codes are in the same directory as the
> > CMakeLists.txt file. I must be missing something trivial here?
>
> You should have linked ressource to the source folder
> (unless you are building in-source).
>
> Did you read the Wiki about the Eclipse CDT generator?
> http://www.vtk.org/Wiki/Eclipse_CDT4_Generator
>
> By the way Are you building in-source or out-of-source?
> http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees
>
> > By the
> > way I use Eclipse CDT 5 (Ganymede), but it should be backwards
> > comaptible right? Thanks!
>
> I'm using CDT5/Ganymede with CMake 2.6.3 CDT generator without trouble.
>
> --
> Erk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090525/7ec903eb/attachment-0001.htm>


More information about the CMake mailing list