Re: [CMake] Code::blocks: parallel build from IDE

2016-01-17 Thread Dimitri Kaparis
On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf <a.neundorf-w...@gmx.net>
wrote:

> On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote:
> > Greetings,
> >
> > I'm using the "CodeBlocks - Unix Makefiles" generator under linux to
> create
> > a build tree for my project consisting of multiple executables and
> > libraries.
> > From the command line, I could use make -jN switch from the root of the
> > build tree to invoke a full build in parallel, but I see no way of doing
> > that from the Code Blocks IDE.
>
> Oops, sorry, that's not implemented for C::B.
>
> Alex
>
>
Any plans on it, or an idea for a workaround?

Thanks,
Dimitri
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Code::blocks: parallel build from IDE

2016-01-09 Thread Dimitri Kaparis
Greetings,

I'm using the "CodeBlocks - Unix Makefiles" generator under linux to create
a build tree for my project consisting of multiple executables and
libraries.
>From the command line, I could use make -jN switch from the root of the
build tree to invoke a full build in parallel, but I see no way of doing
that from the Code Blocks IDE.

In the "Project build options" window, under "Make commands" tab, there is
a box to specify a "Build project/target" command, where I can add -j
switch to make. But that box is only editable for individual executable and
library subprojects, while for virtual CMake-generated targets, such as
"all", it is disabled.

Any ideas?

Regards,
Dimitri
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] add_custom_target and Code Blocks generator

2011-01-20 Thread Dimitri Kaparis
On Thu, Jan 20, 2011 at 7:27 PM, Alexander Neundorf
a.neundorf-w...@gmx.net wrote:
 On Thursday 20 January 2011, Dimitri Kaparis wrote:
 Greetings,

 the Code Blocks generator is not adding to the project the sources,
 specified in the command.
 In order to add a group of header files to my project tree, I'm trying
 to implement the solution posted here:
 http://www.cmake.org/pipermail/cmake/2010-November/040537.html
 The target itself is added to the Code Blocks project, however the
 source files are not.
 Should I file a bug report? Are there any other workarounds for that
 use case, besides adding the headers to some other existing executable
 or library target?

 This is under linux, with CMake release 2.8.3.

 add_custom_target() does not have a list of source files. Which behaviour do
 you expect ?
 Can you post a small example CMakeLists.txt and explain what you would
 expect ?


From the documentation at
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:add_custom_target
:
The SOURCES option specifies additional source files to be included
in the custom target. Specified source files will be added to IDE
project files for convenience in editing even if they have not build
rules.

What I'm trying to do is explained in the thread I linked to above. I
have a directory with some utility header files used by several
targets in my project. I want these headers to appear in the list of
sources in Code Block's generated project. So I add a custom target,
listing them as sources:

set(SRCS point.hpp
 box.hpp)
add_custom_target(GeometryHeaders SOURCES ${SRCS})

In Code Blocks, however, the header files do not appear in the project
source tree.
I just tried with the MSVC10 generator, and there this adds a project
with the sources listed.

Thanks,
Dimitri
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] add_custom_target and Code Blocks generator

2011-01-19 Thread Dimitri Kaparis
Greetings,

the Code Blocks generator is not adding to the project the sources,
specified in the command.
In order to add a group of header files to my project tree, I'm trying
to implement the solution posted here:
http://www.cmake.org/pipermail/cmake/2010-November/040537.html
The target itself is added to the Code Blocks project, however the
source files are not.
Should I file a bug report? Are there any other workarounds for that
use case, besides adding the headers to some other existing executable
or library target?

This is under linux, with CMake release 2.8.3.

Regards,
Dimitri
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual C++ 2010 generator resource files

2010-10-16 Thread Dimitri Kaparis
On Mon, Oct 11, 2010 at 6:25 PM, Bill Hoffman bill.hoff...@kitware.com wrote:
 On 10/9/2010 8:25 AM, Dimitri Kaparis wrote:

 Greetings,

 Using CMake 2.8.2. The Visual C++ 2008 generator applies preprocessor
 definitions to the resource files in the project (the preprocessor
 definitions property in the Resources section of the project
 contains , e.g. the macros added with add_definitions). With the
 Visual C++ 2010 generator, however this is no longer the case - added
 definitions are not applied to resource compilation. It doesn't work
 to explicitly add the definitions to the resource file with
 set_source_file_properties, either.

 Is it a bug with the VC++ 2010 generator? Any workarounds?


 Can you create a bug report?  Sounds like a missing feature.

 -Bill

Okay, done: http://public.kitware.com/Bug/view.php?id=11324
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Visual C++ 2010 generator resource files

2010-10-09 Thread Dimitri Kaparis
Greetings,

Using CMake 2.8.2. The Visual C++ 2008 generator applies preprocessor
definitions to the resource files in the project (the preprocessor
definitions property in the Resources section of the project
contains , e.g. the macros added with add_definitions). With the
Visual C++ 2010 generator, however this is no longer the case - added
definitions are not applied to resource compilation. It doesn't work
to explicitly add the definitions to the resource file with
set_source_file_properties, either.

Is it a bug with the VC++ 2010 generator? Any workarounds?

Thanks,
Dimitri
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake