ProfinetConnector/profinet_stack/osal/cmake/rt-kernel.cmake

38 lines
927 B
CMake

#********************************************************************
# _ _ _
# _ __ | |_ _ | | __ _ | |__ ___
# | '__|| __|(_)| | / _` || '_ \ / __|
# | | | |_ _ | || (_| || |_) |\__ \
# |_| \__|(_)|_| \__,_||_.__/ |___/
#
# www.rt-labs.com
# Copyright 2017 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/rt-kernel/osal.c
src/rt-kernel/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/rt-kernel>
)
install(FILES
src/rt-kernel/sys/osal_cc.h
src/rt-kernel/sys/osal_sys.h
DESTINATION include/sys
)