[CMake] R: Re: CMake CDT generator
Alexander Neundorf
a.neundorf-work at gmx.net
Sat Sep 18 08:25:08 EDT 2010
On Saturday 18 September 2010, tinauser at libero.it wrote:
> Dear Alex,
> Thanks for reply.
> The Build folder is sibling of the src. With the command ccmake ../ -G"
> Eclipse CDT4 - Unix Makefiles" I read a CMakeLists that subdirs to the
> source folder, where the main CMakeLists is located.
> However you are right, part of the problem was there; if I aovoid the in-
> between step and I use only the MakeFileLists in the src folder, running
> ccmake ../src -G"Eclipse CDT4 - Unix Makefiles"
> The source folder is imported.
> However, still I do not have the possibility of select build configuration
> like Debug or Release, even if in the cmake GUI I selected CMAKE_BUILD_TYPE
> as Debug.
If you select DEBUG in ccmake or cmake-gui, cmake will create Makefiles for
the debug configuration.
If you select RELEASE, you get release makefiles.
If you want to chose between multiple configurations in Eclipse, you need to
create one buildtree for each configuration and have cmake generate Makefiles
for the respective configuration in the directories.
You can import once the source directory and additionally multiple build
directories as projects into Eclipse.
Alex
More information about the CMake
mailing list