[CMake] adding files with Eclipse CDT4 Generator
Eric Noulard
eric.noulard at gmail.com
Mon May 25 06:35:50 EDT 2009
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
More information about the CMake
mailing list