Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Falkolib
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
Falkolib
Commits
601adea5
Commit
601adea5
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
9608aef3
No related branches found
No related tags found
1 merge request
!2
Devel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+15
-11
15 additions, 11 deletions
README.md
with
15 additions
and
11 deletions
README.md
+
15
−
11
View file @
601adea5
...
@@ -64,22 +64,26 @@ Let `${falkolib_ROOT}` be the install directory of your local copy
...
@@ -64,22 +64,26 @@ Let `${falkolib_ROOT}` be the install directory of your local copy
of library falkolib.
of library falkolib.
The following standard commands are required to compile it:
The following standard commands are required to compile it:
-
`cd ${falkolib_ROOT}`
```
sh
-
`mkdir build`
cd
${
falkolib_ROOT
}
-
`cd build`
mkdir
build
-
`cmake ..`
cd
build
-
`make`
cmake ..
make
```
You can also install the library into a system directory.
You can also install the library into a system directory.
To change the install directory you must set cmake environment
To change the install directory you must set cmake environment
variable
`${CMAKE_INSTALL_PREFIX}`
(e.g. using command
"
ccmake ..
"
variable
`${CMAKE_INSTALL_PREFIX}`
(e.g. using command
`
ccmake ..
`
before calling
"
cmake ..
"
).
before calling
`
cmake ..
`
).
Its default value on UNIX-like/Linux systems is "/usr/local".
Its default value on UNIX-like/Linux systems is "/usr/local".
After compiling library falkolib, run the command:
After compiling library falkolib, run the command:
-
`sudo make install`
```
sh
sudo
make
install
```
The command
"
sudo
"
is required only if
`${CMAKE_INSTALL_PREFIX}`
The command
`
sudo
`
is required only if
`${CMAKE_INSTALL_PREFIX}`
is a system diretory managed by administrator user root.
is a system diretory managed by administrator user root.
Such command copies:
Such command copies:
-
header files of
`${falkolib_ROOT}/include/falkolib`
to
-
header files of
`${falkolib_ROOT}/include/falkolib`
to
...
@@ -87,7 +91,7 @@ Such command copies:
...
@@ -87,7 +91,7 @@ Such command copies:
-
library files
`${falkolib_ROOT}/lib/libfalkolib.a`
to
-
library files
`${falkolib_ROOT}/lib/libfalkolib.a`
to
`${CMAKE_INSTALL_PREFIX}/lib/`
`${CMAKE_INSTALL_PREFIX}/lib/`
-
cmake script
`${falkolib_ROOT}/cmake_modules/falkolibConfig.cmake`
to
-
cmake script
`${falkolib_ROOT}/cmake_modules/falkolibConfig.cmake`
to
${CMAKE_INSTALL_PREFIX}/share/falkolib/
`
${CMAKE_INSTALL_PREFIX}/share/falkolib/
`
HOW TO USE LIBRARY falkolib IN YOUR PROJECT
HOW TO USE LIBRARY falkolib IN YOUR PROJECT
...
@@ -117,7 +121,7 @@ add_executable(foobar foobar.cpp)
...
@@ -117,7 +121,7 @@ add_executable(foobar foobar.cpp)
target_link_libraries
(
foobar
${
falkolib_LIBRARIES
}
)
target_link_libraries
(
foobar
${
falkolib_LIBRARIES
}
)
```
```
The above example uses the variables defined in falkolibConfig.cmake:
The above example uses the variables defined in
`
falkolibConfig.cmake
`
:
-
`falkolib_FOUND`
- system has falkolib module
-
`falkolib_FOUND`
- system has falkolib module
-
`falkolib_INCLUDE_DIRS`
- the falkolib include directories
-
`falkolib_INCLUDE_DIRS`
- the falkolib include directories
...
...
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