Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
vision
Merge requests
!33
Resolve "Adapt to core CMakeLists.txt refactor"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Adapt to core CMakeLists.txt refactor"
22-adapt-to-core-cmakelists-txt-refactor
into
devel
Overview
0
Commits
18
Pipelines
0
Changes
9
Merged
Mederic Fourmy
requested to merge
22-adapt-to-core-cmakelists-txt-refactor
into
devel
3 years ago
Overview
0
Commits
18
Pipelines
0
Changes
9
Expand
Closes
#22 (closed)
Edited
2 years ago
by
Mederic Fourmy
0
0
Merge request reports
Compare
devel
version 13
3a5f9101
2 years ago
version 12
071f1808
2 years ago
version 11
8eb91c6b
3 years ago
version 10
6278c83c
3 years ago
version 9
550f91a6
3 years ago
version 8
cdee0d60
3 years ago
version 7
84a1c120
3 years ago
version 6
f8def9d0
3 years ago
version 5
0b99e0b9
3 years ago
version 4
245ef651
3 years ago
version 3
245ef651
3 years ago
version 2
375b7932
3 years ago
version 1
b16de668
3 years ago
devel (base)
and
latest version
latest version
a95008f9
18 commits,
2 years ago
version 13
3a5f9101
17 commits,
2 years ago
version 12
071f1808
16 commits,
2 years ago
version 11
8eb91c6b
15 commits,
3 years ago
version 10
6278c83c
14 commits,
3 years ago
version 9
550f91a6
13 commits,
3 years ago
version 8
cdee0d60
11 commits,
3 years ago
version 7
84a1c120
10 commits,
3 years ago
version 6
f8def9d0
9 commits,
3 years ago
version 5
0b99e0b9
8 commits,
3 years ago
version 4
245ef651
6 commits,
3 years ago
version 3
245ef651
202 commits,
3 years ago
version 2
375b7932
2 commits,
3 years ago
version 1
b16de668
1 commit,
3 years ago
9 files
+
149
−
224
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
cmake_modules/wolfvisionConfig.cmake deleted
100644 → 0
+
0
−
90
Options
#edit the following line to add the librarie's header files
FIND_PATH
(
wolfvision_INCLUDE_DIRS
NAMES vision.found
PATHS /usr/local/include/iri-algorithms/wolf/plugin_vision
)
IF
(
wolfvision_INCLUDE_DIRS
)
MESSAGE
(
"Found vision include dirs:
${
wolfvision_INCLUDE_DIRS
}
"
)
ELSE
(
wolfvision_INCLUDE_DIRS
)
MESSAGE
(
"Couldn't find vision include dirs"
)
ENDIF
(
wolfvision_INCLUDE_DIRS
)
FIND_LIBRARY
(
wolfvision_LIBRARIES
NAMES libwolfvision.so libwolfvision.dylib
PATHS /usr/local/lib
)
IF
(
wolfvision_LIBRARIES
)
MESSAGE
(
"Found vision lib:
${
wolfvision_LIBRARIES
}
"
)
ELSE
(
wolfvision_LIBRARIES
)
MESSAGE
(
"Couldn't find wolf vision lib"
)
ENDIF
(
wolfvision_LIBRARIES
)
IF
(
wolfvision_INCLUDE_DIRS AND wolfvision_LIBRARIES
)
SET
(
wolfvision_FOUND TRUE
)
ELSE
(
wolfvision_INCLUDE_DIRS AND wolfvision_LIBRARIES
)
set
(
wolfvision_FOUND FALSE
)
ENDIF
(
wolfvision_INCLUDE_DIRS AND wolfvision_LIBRARIES
)
IF
(
wolfvision_FOUND
)
IF
(
NOT wolfvision_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found vision:
${
wolfvision_LIBRARIES
}
"
)
ENDIF
(
NOT wolfvision_FIND_QUIETLY
)
ELSE
(
wolfvision_FOUND
)
IF
(
wolfvision_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find wolf vision"
)
ENDIF
(
wolfvision_FIND_REQUIRED
)
ENDIF
(
wolfvision_FOUND
)
macro
(
wolf_report_not_found REASON_MSG
)
set
(
wolfvision_FOUND FALSE
)
unset
(
wolfvision_INCLUDE_DIRS
)
unset
(
wolfvision_LIBRARIES
)
# Reset the CMake module path to its state when this script was called.
set
(
CMAKE_MODULE_PATH
${
CALLERS_CMAKE_MODULE_PATH
}
)
# Note <package>_FIND_[REQUIRED/QUIETLY] variables defined by
# FindPackage() use the camelcase library name, not uppercase.
if
(
wolfvision_FIND_QUIETLY
)
message
(
STATUS
"Failed to find wolfvision- "
${
REASON_MSG
}
${
ARGN
}
)
elseif
(
wolfvision_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Failed to find wolfvision - "
${
REASON_MSG
}
${
ARGN
}
)
else
()
# Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error
# that prevents generation, but continues configuration.
message
(
SEND_ERROR
"Failed to find wolfvision - "
${
REASON_MSG
}
${
ARGN
}
)
endif
()
return
()
endmacro
(
wolf_report_not_found
)
if
(
NOT wolfvision_FOUND
)
wolf_report_not_found
(
"Something went wrong while setting up wolf vision."
)
endif
(
NOT wolfvision_FOUND
)
# Set the include directories for wolf (itself).
set
(
wolfvision_FOUND TRUE
)
# Now we gather all the required dependencies for Wolf Laser
FIND_PACKAGE
(
OpenCV REQUIRED
)
list
(
APPEND wolfvision_INCLUDE_DIRS
${
OpenCV_INCLUDE_DIRS
}
)
list
(
APPEND wolfvision_LIBRARIES
${
OpenCV_LIBS
}
)
#Making sure wolf is looked for
if
(
NOT wolf_FOUND
)
FIND_PACKAGE
(
wolfcore REQUIRED
)
#We reverse in order to insert at the start
list
(
REVERSE wolfvision_INCLUDE_DIRS
)
list
(
APPEND wolfvision_INCLUDE_DIRS
${
wolfcore_INCLUDE_DIRS
}
)
list
(
REVERSE wolfvision_INCLUDE_DIRS
)
list
(
REVERSE wolfvision_LIBRARIES
)
list
(
APPEND wolfvision_LIBRARIES
${
wolfcore_LIBRARIES
}
)
list
(
REVERSE wolfvision_LIBRARIES
)
endif
()
# provide both INCLUDE_DIR and INCLUDE_DIRS
SET
(
wolfvision_INCLUDE_DIR
${
wolfvision_INCLUDE_DIRS
}
)
# provide both LIBRARY and LIBRARIES
SET
(
wolfvision_LIBRARY
${
wolfvision_LIBRARIES
}
)
\ No newline at end of file
Loading