Digikam/Hacking with Eclipse: Difference between revisions
Appearance
< Digikam
*>Jwienke Basic idea how to create an eclipse project with cmake |
*>Jwienke some more explanation on how to get the projects into eclipse |
||
Line 12: | Line 12: | ||
../../digikam/ <-- your source folder | ../../digikam/ <-- your source folder | ||
</code> | </code> | ||
This creates two eclipse projects. One in the build directory for building and one in the source folder for using Eclipse version control on the sources. | This creates two eclipse projects. One in the build directory for building and one in the source folder for using Eclipse version control on the sources. Import these two projects in eclipse but ensure that you don't copy the files while importing (there is a checkbox in the import dialog). |
Revision as of 19:50, 25 November 2009
Creating the eclipse project with cmake as an out-of-source build:
Inside the folder that is used for the out-of-source build (must not be a child of the original source folder) do:
cmake -G "Eclipse CDT4 - Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DKDE4_BUILD_TESTS=ON \
-DCMAKE_CXX_FLAGS=-pedantic \
-DCMAKE_C_FLAGS=-pedantic \
-DCMAKE_BUILD_TYPE=debug \
-DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE \
../../digikam/ <-- your source folder
This creates two eclipse projects. One in the build directory for building and one in the source folder for using Eclipse version control on the sources. Import these two projects in eclipse but ensure that you don't copy the files while importing (there is a checkbox in the import dialog).