Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firewire_camera
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
labrobotica
drivers
firewire_camera
Commits
eedce73c
Commit
eedce73c
authored
5 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Update Find cmake with correct paths and path order
parent
a343603e
No related branches found
No related tags found
No related merge requests found
Pipeline
#5354
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Findfirewire_camera.cmake
+22
-18
22 additions, 18 deletions
Findfirewire_camera.cmake
with
22 additions
and
18 deletions
Findfirewire_camera.cmake
+
22
−
18
View file @
eedce73c
FIND_PATH
(
firewire_camera_INCLUDE_DIRS firewirecamera.h firewireserver.h firewireexceptions.h ptg_camera.h bumblebee.h ladybug.h /usr/local/include/iri/firewire_camera /usr/include/iri/firewire_camera
)
SET
(
name battery_monitor
)
#edit the following line to add the librarie's header files
SET
(
header_files firewirecamera.h firewireserver.h firewireexceptions.h ptg_camera.h bumblebee.h ladybug.h
)
FIND_LIBRARY
(
firewire_camera_LIBRARIES
NAMES firewire_camera
PATHS /usr/local/lib/iri/firewire_camera /usr/lib/iri/firewire_camera
)
FIND_PATH
(
${
name
}
_INCLUDE_DIRS
${
header_files
}
/usr/local/include/iri/
${
name
}
/usr/include/iri/
${
name
}
)
FIND_LIBRARY
(
${
name
}
_LIBRARIES
NAMES
${
name
}
PATHS /usr/local/lib/iri/
${
name
}
/usr/lib/iri/
${
name
}
)
SET
(
firewire_c
ame
ra
_INCLUDE_DIR
${
firewire_c
ame
ra
_INCLUDE_DIRS
}
)
SET
(
firewire_c
ame
ra
_LIBRARY
${
firewire_c
ame
ra
_LIBRARIES
}
)
SET
(
${
n
ame
}
_INCLUDE_DIR
${
${
n
ame
}
_INCLUDE_DIRS
}
)
SET
(
${
n
ame
}
_LIBRARY
${
${
n
ame
}
_LIBRARIES
}
)
IF
(
firewire_c
ame
ra
_INCLUDE_DIRS AND
firewire_c
ame
ra
_LIBRARIES
)
SET
(
firewire_c
ame
ra
_FOUND TRUE
)
ENDIF
(
firewire_c
ame
ra
_INCLUDE_DIRS AND
firewire_c
ame
ra
_LIBRARIES
)
IF
(
${
n
ame
}
_INCLUDE_DIRS AND
${
n
ame
}
_LIBRARIES
)
SET
(
${
n
ame
}
_FOUND TRUE
)
ENDIF
(
${
n
ame
}
_INCLUDE_DIRS AND
${
n
ame
}
_LIBRARIES
)
IF
(
firewire_c
ame
ra
_FOUND
)
IF
(
NOT
firewire_c
ame
ra
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
firewire_camera camera driver:
${
firewire_c
ame
ra
_LIBRARIES
}
"
)
ENDIF
(
NOT
firewire_c
ame
ra
_FIND_QUIETLY
)
ELSE
(
firewire_c
ame
ra
_FOUND
)
IF
(
firewire_c
ame
ra
_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
firewire_camera camera driver
"
)
ENDIF
(
firewire_c
ame
ra
_FIND_REQUIRED
)
ENDIF
(
firewire_c
ame
ra
_FOUND
)
IF
(
${
n
ame
}
_FOUND
)
IF
(
NOT
${
n
ame
}
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
${
name
}
:
${${
n
ame
}
_LIBRARIES
}
"
)
ENDIF
(
NOT
${
n
ame
}
_FIND_QUIETLY
)
ELSE
(
${
n
ame
}
_FOUND
)
IF
(
${
n
ame
}
_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
${
name
}
"
)
ENDIF
(
${
n
ame
}
_FIND_REQUIRED
)
ENDIF
(
${
n
ame
}
_FOUND
)
\ No newline at end of file
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