mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-10-06 22:53:40 +08:00
44 lines
910 B
CMake
44 lines
910 B
CMake
# Licensed under the GNU General Public License version 2 with exceptions. See
|
|
# LICENSE file in the project root 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
|
|
oshw/rtk/lw_mac/lw_emac.c
|
|
oshw/rtk/fec/fec_ecat.c
|
|
oshw/rtk/fec/fec_ecat.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>
|
|
)
|
|
|
|
target_compile_options(soem PRIVATE
|
|
-Wall
|
|
-Wextra
|
|
-Werror
|
|
-Wno-unused-parameter
|
|
-Wno-format
|
|
)
|
|
|
|
install(FILES
|
|
osal/rtk/osal_defs.h
|
|
oshw/rtk/nicdrv.h
|
|
DESTINATION include/soem
|
|
)
|
|
|
|
target_link_libraries(soem PUBLIC kern ${BSP})
|