-
Notifications
You must be signed in to change notification settings - Fork 63
/
CMakeLists.txt
51 lines (35 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.5)
set(REMCU_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/output)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
message("**************************************************\n\n\n")
message("not defined toolchain file")
message("set -DCMAKE_TOOLCHAIN_FILE argument")
message("for example: cmake . -DCMAKE_TOOLCHAIN_FILE=REMCU/platform/windows_x64.cmake")
message(FATAL_ERROR "\n\n\n**************************************************")
endif()
add_subdirectory(stm32)
add_subdirectory(stm8)
if(NOT ${TARGET_REMCU_OS_NAME} STREQUAL "Raspbian_armv6")
add_subdirectory(nordicsemi)
endif()
if(NOT WIN32)
if(NOT APPLE)
add_subdirectory(NXP)
add_subdirectory(Atmel)
endif()
add_subdirectory(SiLabs)
if(NOT ${TARGET_REMCU_OS_NAME} STREQUAL "Raspbian_armv6")
add_subdirectory(freescale)
if(NOT APPLE)
add_subdirectory(infineon)
endif()
endif()
endif(NOT WIN32)
include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)
set(CMAKE_MODULE_PATH ${REMCU_VM_PATH}/cmake)
include(MultiBuild)
ExternalProject_Add(_TEST_LIB_BUILD_
DOWNLOAD_COMMAND ""
SOURCE_DIR "${REMCU_VM_PATH}/test/"
CMAKE_ARGS ${CMAKE_ARGS}
)