Hi,<br><br>You should have either 2 build trees or use custom commands.<br>If you have a lot of files you should go first way.<br>To ease development you may compile other tree using external project. Unfortunately external project is not rebuilt if its sources changed. You have to do it manually.<br>
<br><div class="gmail_quote">On Fri, May 11, 2012 at 8:12 PM, Alexey Istomin <span dir="ltr"><<a href="mailto:strowil@yandex.ru" target="_blank">strowil@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Is it possible to use different assemblers in single build with CMake?<br>
<br>
I try to use CMake for building embedded application - statically linked elf file.<br>
Main CPU has 2 cores: general-purpose MIPS based core and DSP. Project has simple structure: main dir contains asm and C sources for Mips core, dsp-lib subdir has only asm sources for DSP core:<br>
<br>
main/<br>
crt0-mips.s<br>
main.c<br>
...<br>
dsp-lib/<br>
fft.s<br>
....<br>
<br>
GCC compiler and assembler are used for Mips sources, special assembler (dspasm) based on gnu should be used for DSP. Main should be linked with dsp lib into single elf file.<br>
I can successfully build main app without dsp-lib. But when I try to add dsp-lib subdir and set dspadm as assembler, CMake still uses mips-asm in the dsp-lib. Is it any solution?<br>
<br>
Thanks a lot<br>
Alex<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>