RIF: [CMake] kdevelop problems
Luigi Calori
l.calori at cineca.it
Tue Oct 31 06:39:21 EST 2006
Thanks, Frederic
My sistuation is I have aready an hand written CMakefile (I ususally
work on MS visual studio) for several generators (Unix Makefiles, mingw,
MS VS 7...)
I currently build under Linux thru Makefiles, I would like to test
Kdevelop as an IDE platform for Linux.
So I installed Kdevelop (under Fedora Core 5) and set up the generator
as KDevelop3
I currently keep
CMAKE_SOURCE_DIR != CMAKE_BUILD_DIR and, worse, my c++ sources reside on
an external dir from CMAKE_SOURCE_DIR
The problem is that if I open the kdevelop project that has been
generated by CMake, it does not contains any c++ source nor any include file
I' ve tied with a simpler project thar has c++ files inside
CMAKE_SOURCE_DIR and the files are showed.
Is it a known limitation?
Do I have to use special hacks inside CMakefiles to tell Kdevelop to add
the files to the project?
Thanks in advance
Luigi
Frederic Heem wrote:
>Ciao,
>The problem is in kdevelop, not in cmake itself. When kdevelop create a cmake project, CMAKE_SOURCE_DIR = CMAKE_BUILD_DIR, which is a bad idea. The preferred way is that CMAKE_SOURCE_DIR != CMAKE_BUILD_DIR. Then cleaning a project is just a matter of deleting CMAKE_BUILD_DIR. The other advantage is to ability to have different build configuration, example a debug and non debug build.
>Please report a bug report to kdevelop about this issue.
>By the way, it's still possible to use kdevelop and cmake, that's what I'm using to develop. Just create hand written CMakeList.txt, import the project in kdevelop using "custom makefile", then configure kdevelop to use the build directory to compile, and sett other paramaters such as where is the executable.
>Frederic Heem
>
>-----Messaggio originale-----
>Da: cmake-bounces+frederic.heem=telsey.it at cmake.org per conto di Luigi Calori
>Inviato: lun 30/10/2006 18.09
>A: CMake Mailing List
>Cc:
>Oggetto: [CMake] kdevelop problems
>
>I' m new to kdevelop and starting to use CMake for it.
>I' ve a project that builds correctly with make but has source files
>that resides on external directory
>(outside from CMAKE_SOURCE_DIR)
>The generated kdevelop projects seems empty from source files (it shows
>only CMakelists.txt inside CMAKE_SOURCE_DIR)
>Nevertheless the project builds.
>Did I do something wrong or the placing of source files outside from
>CMAKE_SOURCE_DIR prevent listing inside kdevelop?
>
>Thanks in advance
> Luigi
>_______________________________________________
>
>
More information about the CMake
mailing list