Re: [CMake] question about Eclipse CDT Generators

2011-09-08 Thread I. Bue
CMake generates all the Makefiles by itself and then creates a standard
Makefile-Project for Eclipse/CDT on top of them. This is different from
(native) 'Managed Build' in Eclipse/CDT where the project configuration
and dependency tree is pure XML and the underlying toolchain is
integrated by adapter-classes in Java.
___
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] How to provide multiple targets to CTEST_BUILD() ?

2011-09-07 Thread I. Bue
Because of CDash/CTest's strange Append/Accumulation behaviour with
consecutive report submits it would be convenient to provide multiple
targets within a single call to CTEST_BUILD(). How to do this correctly?
___
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] Pass an array type argument to a macro

2011-07-19 Thread I. Bue
On 07/19/11 10:57, Laszlo Papp wrote:
 Hi,

 Is there a way of passing array arguments to a macro with cmake ?


You can simply pass the arguments by-name instead of by-value and
then double-dereference them inside your macro ( ${${arg}} ).
The design of your macro determines which of its arguments take values
or names of variables.

macro(testmacro simplearg listarg) #both arguments want variables
message(STATUS simplearg: ${${simplearg}})
#foreach(listitem IN ITEMS ${${listarg}})
foreach(listitem IN LISTS ${listarg})
message(STATUS listitem: ${listitem})
endforeach()
endmacro(testmacro)

set(testlist ONE TWO THREE FOUR)
set(testvar testvalue)
testmacro(testvar testlist)


___
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