Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gz_gep_tools
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Olivier Stasse
gz_gep_tools
Commits
cdfd56db
Commit
cdfd56db
authored
1 month ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Add new class.
parent
18f4ab8a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+9
-6
9 additions, 6 deletions
CMakeLists.txt
with
9 additions
and
6 deletions
CMakeLists.txt
+
9
−
6
View file @
cdfd56db
cmake_minimum_required
(
VERSION 3.22.1 FATAL_ERROR
)
set
(
CMAKE_CXX_STANDARD 17
)
project
(
gz-gep-tools
)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
# Find the Gazebo Transport library
find_package
(
gz-transport13 QUIET REQUIRED OPTIONAL_COMPONENTS log
)
set
(
GZ_TRANSPORT_VER
${
gz-transport13_VERSION_MAJOR
}
)
add_library
(
gz_transport_hw_interface
add_library
(
gz_transport_hw_interface
SHARED
src/joint_state_interface.cc
src/control_over_gz.cc
)
target_compile_features
(
gz_transport_hw_interface PUBLIC cxx_std_17
)
target_include_directories
(
gz_transport_hw_interface PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries
(
gz_transport_hw_interface gz-transport
${
GZ_TRANSPORT_VER
}
::core
)
add_executable
(
publisher publisher
.cc
)
target_include_directories
(
publisher
PUBLIC
add_executable
(
control_loop ./tools/control_loop
.cc
)
target_include_directories
(
control_loop
PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_compile_features
(
publisher PUBLIC cxx_std_17
)
target_link_libraries
(
publisher gz_transport_hw_interface
)
target_link_libraries
(
control_loop gz_transport_hw_interface
)
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