Re: [CMake] simple program, os x library archive error, linux no issues

2013-11-20 Thread Arne Pagel
sorry, it seems that I replyed to the wrong thread... -- 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:

Re: [CMake] multi core project

2013-11-20 Thread Arne Pagel
OK, thanks. But somehow complicated. I wonder If I couldn't (miss)use the UPDATE_COMMAND for this. Can I use a macro as UPDATE_COMMAND? My CMakeLists.txt looks like that right now: include(ExternalProject) SET(subprojects "core0" "core1" "core2") foreach(MYPROJ ${subprojects}) ExternalPr

Re: [CMake] simple program, os x library archive error, linux no issues

2013-11-20 Thread Arne Pagel
OK, thanks. But somehow complicated. I wonder If I couldn't (miss)use the UPDATE_COMMAND for this. Can I use a macro as UPDATE_COMMAND? My CMakeLists.txt looks like that right now: include(ExternalProject) SET(subprojects "core0" "core1" "core2") foreach(MYPROJ ${subprojects}) ExternalPr

Re: [CMake] multi core project

2013-11-19 Thread Arne Pagel
Dear all, I just tried to use the ExternalProject_Add for this multicore project, having different separate camke projects for each core Now I have 2 Problems: 1.) with the ExternalProject_Add and a given source dir it seams that my external projects are not rebuild if I made some changes ther

[CMake] multi core project

2013-11-11 Thread Arne Pagel
Dear all, I am using cmake for an embedded environment where I now have to add multi core support. In this case I have a Controller with up to 4 different cores! There is for example one core dedicated for fast peripheral access, one core for with additional dsp instructions and so on. For 3 Con

[CMake] specifying two (cross)compilers

2011-11-24 Thread Arne Pagel
Hello everyone, I have a project (for embedded controllers) where I have to use 2 different compilers for 2 targets. The output of the first target is included in to the elf-output of the second one. src_1/* -> 1.elf src_2/* -> 2.elf + 1.elf Currently I use this procedure with a hand written

[CMake] cmake -E remove xx*, wildcards win32?

2011-08-17 Thread Arne Pagel
Hello, I am trying to use cmake for a cross platform project. I want to delete some files using cmake -E remove file* This works on an linux system, but on an windows system wildcards are not working, I just can delete files using their explicit name. In my case the file names are not known, si

[CMake] ADD_CUSTOM_COMMAND, crating file with echo redirection, platform independent

2010-10-27 Thread Arne Pagel
Hello, I need a custom command in my build process. The tool that I am using has a small problem, I have to insert a line of code in the output file manually: #include I tried this with echo and output redirection: echo "#include " > images.c The tool, gdk-pixbuf-csource, is not able to genera

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Arne Pagel
Hi Luca, thank you for the idea, I will try it. It looks if this could help me, even if I don't understand every command in detail. I think I wouldn't have brought this out with reading the docs. best regards Arne Luca Cappa schrieb: Hi Arne, I think this cmake script shows what you need to

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Arne Pagel
> Are you sure you really need that ? > If you enter "make help" in the directory of your target, you will see that > there are also rules for building the object files foo.o and also for just > generating the assembler files (foo.s). > I.e. you can manually enter "make ...path/foo.s" and this wil

[CMake] "rule" to generate assembler listings for each c file

2010-01-09 Thread Arne Pagel
Hello, I try to use cmake for crosscompiling an embedded project with arm-elf-gcc. For a simple project, a CMakeLists.txt like this works fine for me: cmake_minimum_required(VERSION 2.6) SET(CMAKE_SYSTEM_NAME Generic) SET(CMAKE_C_COMPILER arm-elf-gcc) SET (CMAKE_SHARED_LINKER_FLAGS_INIT "") SE