forked from open-edge-platform/edge-ai-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfind_igh.cmake
More file actions
30 lines (29 loc) · 912 Bytes
/
find_igh.cmake
File metadata and controls
30 lines (29 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2025 Intel Corporation
# Find ighethercat
if(COBALT)
find_library(
ETHERCAT_LIBRARIES
NAMES ethercat_rtdm
HINTS ${ROOTDIR}/usr/lib ${ROOTDIR}/usr/local/lib)
else()
find_library(
ETHERCAT_LIBRARIES
NAMES ethercat
HINTS ${ROOTDIR}/usr/include ${ROOTDIR}/usr/local/include)
endif(COBALT)
find_path(
ETHERCAT_INCLUDE_DIRS
NAMES ecrt.h
HINTS ${ETHERCAT_HEADERDIR})
if (NOT ETHERCAT_LIBRARIES)
message(ERROR " ETHERCAT library not found under: ${ROOTDIR}/usr/lib ${ROOTDIR}/usr/local/lib")
endif()
if (NOT ETHERCAT_INCLUDE_DIRS)
message(ERROR " ETHERCAT headers not found under: ${ROOTDIR}/usr/include ${ROOTDIR}/usr/local/include")
endif()
message(STATUS "ETHERCAT_INCLUDE_DIRS: ${ETHERCAT_INCLUDE_DIRS}")
message(STATUS "ETHERCAT_LIBRARIES: ${ETHERCAT_LIBRARIES}")
include_directories(
${ETHERCAT_INCLUDE_DIRS}
)