mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-06 18:30:09 +08:00
Fix some headers that were missed in previous commits. Change-Id: Ifa08fedf9199ba8c8a0766293bc7933e7f7475f2
44 lines
896 B
CMake
44 lines
896 B
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.
|
|
|
|
target_sources(soem PRIVATE
|
|
osal/linux/osal.c
|
|
osal/linux/osal_defs.h
|
|
oshw/linux/oshw.c
|
|
oshw/linux/oshw.h
|
|
oshw/linux/nicdrv.c
|
|
oshw/linux/nicdrv.h
|
|
)
|
|
|
|
target_include_directories(soem PUBLIC
|
|
$<BUILD_INTERFACE:${SOEM_SOURCE_DIR}/osal/linux>
|
|
$<BUILD_INTERFACE:${SOEM_SOURCE_DIR}/oshw/linux>
|
|
$<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
|
|
)
|
|
endif()
|
|
endforeach()
|
|
|
|
target_link_libraries(soem PUBLIC pthread rt)
|
|
|
|
install(FILES
|
|
osal/linux/osal_defs.h
|
|
oshw/linux/nicdrv.h
|
|
DESTINATION include/soem
|
|
)
|