mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-07 11:03:52 +08:00
Fix some headers that were missed in previous commits. Change-Id: Ifa08fedf9199ba8c8a0766293bc7933e7f7475f2
53 lines
1.0 KiB
CMake
53 lines
1.0 KiB
CMake
# This software is dual-licensed under GPLv3 and a commercial
|
|
# license. See the file LICENSE.md distributed with this software for
|
|
# full license information.
|
|
|
|
find_package(rtkernel)
|
|
find_package(${BSP})
|
|
|
|
target_sources(soem PRIVATE
|
|
osal/rtk/osal.c
|
|
osal/rtk/osal_defs.h
|
|
oshw/rtk/oshw.c
|
|
oshw/rtk/oshw.h
|
|
oshw/rtk/nicdrv.c
|
|
oshw/rtk/nicdrv.h
|
|
)
|
|
|
|
target_include_directories(soem PUBLIC
|
|
$<BUILD_INTERFACE:${SOEM_SOURCE_DIR}/osal/rtk>
|
|
$<INSTALL_INTERFACE:include/soem>
|
|
)
|
|
|
|
target_include_directories(soem PUBLIC
|
|
$<BUILD_INTERFACE:${SOEM_SOURCE_DIR}/oshw/rtk>
|
|
$<INSTALL_INTERFACE:include/soem>
|
|
)
|
|
|
|
foreach(target IN ITEMS
|
|
soem
|
|
ec_sample
|
|
eepromtool
|
|
eni_test
|
|
eoe_test
|
|
firm_update
|
|
simple_ng
|
|
slaveinfo)
|
|
if (TARGET ${target})
|
|
target_compile_options(${target} PRIVATE
|
|
-Wall
|
|
-Wextra
|
|
-Wno-unused-parameter
|
|
-Wno-format
|
|
)
|
|
endif()
|
|
endforeach()
|
|
|
|
install(FILES
|
|
osal/rtk/osal_defs.h
|
|
oshw/rtk/nicdrv.h
|
|
DESTINATION include/soem
|
|
)
|
|
|
|
target_link_libraries(soem PUBLIC kern ${BSP})
|