ProfinetConnector/profinet_stack/osal/cmake/STM32Cube.cmake

45 lines
1.1 KiB
CMake

#********************************************************************
# _ _ _
# _ __ | |_ _ | | __ _ | |__ ___
# | '__|| __|(_)| | / _` || '_ \ / __|
# | | | |_ _ | || (_| || |_) |\__ \
# |_| \__|(_)|_| \__,_||_.__/ |___/
#
# www.rt-labs.com
# Copyright 2021 rt-labs AB, Sweden.
#
# This software is licensed under the terms of the BSD 3-clause
# license. See the file LICENSE distributed with this software for
# full license information.
#*******************************************************************/
target_sources(osal PRIVATE
src/freertos/osal.c
src/freertos/osal_log.c
)
target_compile_options(osal
PRIVATE
-Wall
-Wextra
-Werror
-Wno-unused-parameter
)
target_include_directories(osal PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/freertos>
)
install(FILES
src/freertos/sys/osal_cc.h
src/freertos/sys/osal_sys.h
DESTINATION include/sys
)
add_library(cube)
target_link_libraries(osal cube)
install(TARGETS cube EXPORT OsalTargets)
set(CORE_DIR src/freertos/${BOARD})
include(STM32Cube/${BOARD})