diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-12 00:13:59 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-09-12 00:13:59 +0200 |
commit | 17ced7d38a9f1fcefc723420038470b4382f6dad (patch) | |
tree | 15f9c0d6b5182bef59ac64456ff0ecbdcc475ed3 /mcu.cmake | |
parent | 1e44cbf29d35ca020e0402f2a8289935abcb54c6 (diff) | |
download | mcu.cmake-17ced7d38a9f1fcefc723420038470b4382f6dad.tar.gz mcu.cmake-17ced7d38a9f1fcefc723420038470b4382f6dad.tar.bz2 mcu.cmake-17ced7d38a9f1fcefc723420038470b4382f6dad.tar.xz mcu.cmake-17ced7d38a9f1fcefc723420038470b4382f6dad.zip |
o Working version back to listing everything in the cmake file but some help from the cmake libs.
Diffstat (limited to 'mcu.cmake')
-rw-r--r-- | mcu.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,9 +1,11 @@ if (NOT MCU_CHIP) message(FATAL_ERROR "Missing required argument CHIP.") -elseif (MCU_CHIP MATCHES nrf51822) +elseif (MCU_CHIP MATCHES "nrf5.*") set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/nrf51.cmake") elseif (MCU_CHIP MATCHES D2000) set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/intel-quark-d2000.toolchain.cmake") else () message(FATAL_ERROR "Unsupported MCU_CHIP setting: ${MCU_CHIP}") endif () + +include(${CMAKE_CURRENT_LIST_DIR}/mcu_include_directories_from_sources.cmake) |