How do I...
Valentin Pavlyuchenko
thevalik at gmail.com
Tue Feb 9 12:00:35 GMT 2010
Hi,
Here are the things I know:
Using cmake:
> 1) How do I create additional targets in the current project
These commands define custom targets in cmake:
add_executable()
add_library()
add_custom_target()
> 2) How do I create subprojects?
What is the difference between targets and subprojects?
> 3) How do I setup different build environments (like debug/optimized/etc) ?
AFAIK pass different options to cmake and use conditionals in
CMakeLists.txt for these options.
> 4) Where do I setup compiler switches (-O3, -DWITH_SOMETHING, -Isomepath
> etc)?
add_definitions() for defines,
target_link_library() for linking targets with something
Setting CMAKE_C_FLAGS or CMAKE_CXX_FLAGS variables for compiler options.
> 5) Where do I specify the compiler to be used? (icc/gcc/etc)
To explicitly set compiler use smth like this:
CMAKE_FORCE_CXX_COMPILER("/usr/bin/whatever++" GNU)
Please use http://www.cmake.org/cmake/help/cmake-2-8-docs.html and
google:) It's enough, trust me:)
Best regards,
Valentin Pavlyuchenko
2010/2/9 Leon Pollak <leonp at plris.com>:
> On Tuesday February 9 2010, Alexander Puchmayr wrote:
>> HI there!
>>
>> Is there some FAQ regarding migration from kdevelop3.x -> kdevelop4?
>>
>> My specific questions are:
>>
>> 1) How do I create additional targets in the current project
>>
>> 2) How do I create subprojects?
>>
>> 3) How do I setup different build environments (like debug/optimized/etc) ?
>>
>> 4) Where do I setup compiler switches (-O3, -DWITH_SOMETHING, -Isomepath
>> etc)?
>>
>> 5) Where do I specify the compiler to be used? (icc/gcc/etc)
>>
> It will be really great if there will be some volunteer which will help me
> too with exactly the same questions.
> I admit, that I studied the cmake manuals and examples and tried to do the
> same things with no success.
> I too will be very thankful for the explanation/example of these 5 items.
> This is the only thing that prevents me from transition to kdvelop4, although
> I really want this.
>
> Thanks.
> --
> Leon
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>
More information about the KDevelop
mailing list