init fsfw_hal
This commit is contained in:
parent
18d3d7ce49
commit
29c44bfd78
32
CMakeLists.txt
Normal file
32
CMakeLists.txt
Normal file
@ -0,0 +1,32 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
set(LIB_FSFW_HAL_NAME fsfw_hal)
|
||||
set(RPI_PATH_NAME rpi)
|
||||
set(STM32H7_PATH_NAME stm32h7)
|
||||
|
||||
add_library(${LIB_FSFW_HAL_NAME})
|
||||
|
||||
if(NOT LIB_FSFW_NAME)
|
||||
message(ERROR "LIB_FSFW_NAME needs to be set as a linkable target")
|
||||
endif()
|
||||
|
||||
set_property(CACHE TGT_BSP PROPERTY STRINGS
|
||||
arm/stm32h743zi-nucleo
|
||||
arm/raspberrypi
|
||||
)
|
||||
|
||||
target_sources(${LIB_FSFW_HAL_NAME} PRIVATE
|
||||
Dummy.cpp
|
||||
)
|
||||
|
||||
if(TGT_BSP MATCHES "arm/raspberrypi")
|
||||
add_subdirectory(${RPI_PATH_NAME})
|
||||
endif()
|
||||
|
||||
if(TGT_BSP MATCHES "arm/stm32h743zi-nucleo")
|
||||
add_subdirectory(${STM32H7_PATH_NAME})
|
||||
endif()
|
||||
|
||||
target_link_libraries(${LIB_FSFW_HAL_NAME}
|
||||
${LIB_FSFW_NAME}
|
||||
)
|
10
examples/CMakeLists.txt
Normal file
10
examples/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
set(LIB_FSFW_HAL_NAME fsfw_hal)
|
||||
add_library(${LIB_FSFW_HAL_NAME})
|
||||
|
||||
if(NOT LIB_FSFW_NAME)
|
||||
message(ERROR "LIB_FSFW_NAME needs to be set as a linkable target")
|
||||
endif()
|
||||
|
||||
target_link_libraries(${LIB_FSFW_NAME})
|
1
host/CMakeLists.txt
Normal file
1
host/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
|
1
rpi/CMakeLists.txt
Normal file
1
rpi/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
|
0
stm32h7/CMakeLists.txt
Normal file
0
stm32h7/CMakeLists.txt
Normal file
Loading…
Reference in New Issue
Block a user