Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Commits
0f181296
Commit
0f181296
authored
3 years ago
by
Christian Dreher
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Remove obsolete find_package file.
parent
026cee89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/cmake/FindSOEM.cmake
+0
-63
0 additions, 63 deletions
etc/cmake/FindSOEM.cmake
with
0 additions
and
63 deletions
etc/cmake/FindSOEM.cmake
deleted
100644 → 0
+
0
−
63
View file @
026cee89
# - Try to find soem
# Once done this will define
#
# SOEM_FOUND - soem found
# SOEM_INCLUDE_DIR - the soem include directory
# SOEM_LIBRARIES - soem library
#
if
(
NOT
"$ENV{SOEM_DIR}"
EQUAL
""
)
set
(
SOEM_DIR $ENV{SOEM_DIR} CACHE PATH
"Path to SOEM"
FORCE
)
endif
()
set
(
HEADER_SEARCH_PATHS
${
SOEM_DIR
}
/include/
${
SOEM_DIR
}
/include/soem/
${
SOEM_DIR
}
/../soem/
#if SOEM_DIR points to build
${
SOEM_DIR
}
/../osal/
#if SOEM_DIR points to build
${
SOEM_DIR
}
/../oshw/
#if SOEM_DIR points to build
${
SOEM_DIR
}
/../osal/linux/
#if SOEM_DIR points to build
${
SOEM_DIR
}
/../oshw/linux/
#if SOEM_DIR points to build
ENV CPATH
/usr/include/
/usr/include/soem/
/usr/include/
/usr/local/include/soem/
/opt/local/include/soem/
)
#if soem is used from build, all headers are scattered around
#find all of them and add them to SOEM_INCLUDE_DIR
find_path
(
SOEM_INCLUDE_DIR_0 NAMES ethercatmain.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
SOEM_INCLUDE_DIR_1 NAMES osal.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
SOEM_INCLUDE_DIR_2 NAMES osal_defs.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
SOEM_INCLUDE_DIR_3 NAMES oshw.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
SOEM_INCLUDE_DIR_4 NAMES nicdrv.h PATHS
${
HEADER_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
if
(
SOEM_INCLUDE_DIR_0 AND SOEM_INCLUDE_DIR_1 AND SOEM_INCLUDE_DIR_2 AND SOEM_INCLUDE_DIR_3 AND SOEM_INCLUDE_DIR_4
)
set
(
SOEM_INCLUDE_DIR
${
SOEM_INCLUDE_DIR_0
}
${
SOEM_INCLUDE_DIR_1
}
${
SOEM_INCLUDE_DIR_2
}
${
SOEM_INCLUDE_DIR_3
}
${
SOEM_INCLUDE_DIR_4
}
)
endif
()
FIND_LIBRARY
(
SOEM_LIBRARIES NAMES soem
PATHS
${
SOEM_DIR
}
#if SOEM_DIR points to build
${
SOEM_DIR
}
/lib
ENV LD_LIBRARY_PATH
ENV LIBRARY_PATH
/usr/lib
/usr/local/lib
/opt/local/lib
NO_DEFAULT_PATH
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments and set OODL_YOUBOT_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
SOEM DEFAULT_MSG
SOEM_LIBRARIES SOEM_INCLUDE_DIR
)
# show the SOEM_INCLUDE_DIR and SOEM_LIBRARY_DIR variables only in the advanced view
MARK_AS_ADVANCED
(
SOEM_INCLUDE_DIR SOEM_LIBRARIES
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment