Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csm
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
algorithms
csm
Commits
0deb2f52
Commit
0deb2f52
authored
15 years ago
by
Andrea Censi
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
a1fcaffb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/example-linking-cmake/CMakeLists.txt
+23
-0
23 additions, 0 deletions
docs/example-linking-cmake/CMakeLists.txt
docs/example-linking-cmake/myprogram.c
+5
-0
5 additions, 0 deletions
docs/example-linking-cmake/myprogram.c
with
28 additions
and
0 deletions
docs/example-linking-cmake/CMakeLists.txt
0 → 100644
+
23
−
0
View file @
0deb2f52
cmake_minimum_required
(
VERSION 2.4
)
project
(
myproject
)
# Require we have pkgconfig installed
find_package
(
PkgConfig REQUIRED
)
# Tell pkgconfig to look for CSM
pkg_check_modules
(
CSM REQUIRED csm
)
IF
(
${
CSM_FOUND
}
)
MESSAGE
(
"CSM_LIBRARY_DIRS:
${
CSM_LIBRARY_DIRS
}
"
)
MESSAGE
(
"CSM_LIBRARIES:
${
CSM_LIBRARIES
}
"
)
MESSAGE
(
"CSM_INCLUDE_DIRS:
${
CSM_INCLUDE_DIRS
}
"
)
INCLUDE_DIRECTORIES
(
${
CSM_INCLUDE_DIRS
}
)
# important!
LINK_DIRECTORIES
(
${
CSM_LIBRARY_DIRS
}
)
# important!
ELSE
(
${
CSM_FOUND
}
)
MESSAGE
(
FATAL_ERROR
"CSM not found. Check that the environment variable PKG_CONFIG_PATH includes the path containing the file 'csm.pc'."
)
ENDIF
(
${
CSM_FOUND
}
)
add_executable
(
myprogram myprogram.c
)
target_link_libraries
(
myprogram
${
CSM_LIBRARIES
}
)
# important!
This diff is collapsed.
Click to expand it.
docs/example-linking-cmake/myprogram.c
0 → 100644
+
5
−
0
View file @
0deb2f52
#include
<csm/csm_all.h>
int
main
()
{
}
\ 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