Configure build directory dialog explained

Mateusz Łoskot mateusz at loskot.net
Sat Oct 29 01:14:38 BST 2011


Hi,

I'm trying to learn best practice for organizing and developing
CMake-based projects
using KDevelop. There are number of issues and questions, so I'm scanning
hard any kind of documentation I can find, bug reports and ml archives.
Likely, I'll flood the list a bit with questions related to CMake and KDevelop
(I already discussed some issues on #kdevelop IRC channel too.)

Let's start with simple thing.

I do this:
1) New session created.
2) Open / Import Project.
3) Configure a build directory
(http://www.flickr.com/photos/mloskot/6290341650/)

Question 1)
Build type, is it reconfigurable once the project is created/imported?
Or, the project is supposed to be set with particular build type once
and for good
and if user wants to change the build type later, then she is supposed to
create/import new project?

Question 2)
What exactly is the kosher input in Extra Arguments?
Are the arguments supposed to be CMake
- options (http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Options)
- variables (http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Variables)
or anything else?
If they are meant to be CMake Variables, then I guess it should be
format as given to
CMake in command line
-DCMAKE_CXX_COMPILER=clang++  -DMY_CUSTOM_VARIABLE:STRING="abc"

Question 3)
If Debug is selected as Build type and Extra Arguments is given with
-DCMAKE_BUILD_TYPE=Release, which one has preference?

Question 4)
If the installation prefix is left empty, does it mean default
CMAKE_INSTALL_PREFIX value is used?
>From the patch submitted to this bug report, I guess it is default value used.
https://bugs.kde.org/show_bug.cgi?id=278008

If there any documentation where I could learn about it?
Otherwise, I'd appreciate any help.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org




More information about the KDevelop mailing list