diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-01-04 20:29:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-04-15 13:11:17 (GMT) |
commit | 22fb73a0d6e27f0ecaf4e10705de204742427b31 (patch) | |
tree | 23bf8fa1b489375b121b7b74f10cea95bd037f9f /Modules/Compiler/IAR-ASM.cmake | |
parent | c6253fba415238bc85f4b74365a7d6ebac1735e7 (diff) | |
download | CMake-22fb73a0d6e27f0ecaf4e10705de204742427b31.zip CMake-22fb73a0d6e27f0ecaf4e10705de204742427b31.tar.gz CMake-22fb73a0d6e27f0ecaf4e10705de204742427b31.tar.bz2 |
Add support files for C, C++ and ASM for the IAR toolchain.
The original feature request is at http://www.cmake.org/Bug/view.php?id=10176
Documentation can be found at http://www.iar.com/website1/1.0.1.0/675/1/
Alex
Diffstat (limited to 'Modules/Compiler/IAR-ASM.cmake')
-rw-r--r-- | Modules/Compiler/IAR-ASM.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-ASM.cmake b/Modules/Compiler/IAR-ASM.cmake new file mode 100644 index 0000000..66fb052 --- /dev/null +++ b/Modules/Compiler/IAR-ASM.cmake @@ -0,0 +1,14 @@ +# This file is processed when the IAR compiler is used for an assembler file + +include(Compiler/IAR) + +set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <SOURCE> <DEFINES> <FLAGS> -o <OBJECT>") + +if("${IAR_TARGET_ARCHITECTURE}" STREQUAL "ARM") + set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;asm;msa) +endif() + + +if("${IAR_TARGET_ARCHITECTURE}" STREQUAL "AVR") + set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s90;asm;msa) +endif() |