Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
3b2d08e9
Commit
3b2d08e9
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Fixing cmake error in gtest for ubuntu bionic
parent
ddda0cb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!451
After cmake and const refactor
,
!445
Resolve "Refactoring WOLF installation system"
Pipeline
#10451
canceled
3 years ago
Stage: deploy_plugins
Stage: deploy_ros
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/CMakeLists.txt
+9
-9
9 additions, 9 deletions
test/CMakeLists.txt
test/gtest/CMakeLists.txt
+1
-1
1 addition, 1 deletion
test/gtest/CMakeLists.txt
with
10 additions
and
10 deletions
test/CMakeLists.txt
+
9
−
9
View file @
3b2d08e9
...
...
@@ -18,7 +18,7 @@ wolf_add_gtest(gtest_example gtest_example.cpp) #
# OPTIONAL: if the gtest depends on the dummy library #
# (used for implementing pure virtual base classes), #
# add a line #
# target_link_libraries(gtest_example
PUBLIC
dummy) #
# target_link_libraries(gtest_example dummy) #
# #
###########################################################
...
...
@@ -32,7 +32,7 @@ wolf_add_gtest(gtest_example gtest_example.cpp) #
# BufferFrame
wolf_add_gtest
(
gtest_buffer_frame gtest_buffer_frame.cpp
)
target_link_libraries
(
gtest_buffer_frame
PUBLIC
dummy
)
target_link_libraries
(
gtest_buffer_frame dummy
)
# CaptureBase class test
wolf_add_gtest
(
gtest_capture_base gtest_capture_base.cpp
)
...
...
@@ -48,15 +48,15 @@ wolf_add_gtest(gtest_factor_autodiff gtest_factor_autodiff.cpp)
# Factory test
wolf_add_gtest
(
gtest_factory gtest_factory.cpp
)
target_link_libraries
(
gtest_factory
PUBLIC
dummy
)
target_link_libraries
(
gtest_factory dummy
)
# FactoryStateBlock factory test
wolf_add_gtest
(
gtest_factory_state_block gtest_factory_state_block.cpp
)
target_link_libraries
(
gtest_factory_state_block
PUBLIC
dummy
)
target_link_libraries
(
gtest_factory_state_block dummy
)
# Node Emplace test
wolf_add_gtest
(
gtest_emplace gtest_emplace.cpp
)
target_link_libraries
(
gtest_emplace
PUBLIC
dummy
)
target_link_libraries
(
gtest_emplace dummy
)
# FeatureBase classes test
wolf_add_gtest
(
gtest_feature_base gtest_feature_base.cpp
)
...
...
@@ -90,11 +90,11 @@ wolf_add_gtest(gtest_parser_yaml gtest_parser_yaml.cpp)
# Problem class test
wolf_add_gtest
(
gtest_problem gtest_problem.cpp
)
target_link_libraries
(
gtest_problem
PUBLIC
dummy
)
target_link_libraries
(
gtest_problem dummy
)
# ProcessorBase class test
wolf_add_gtest
(
gtest_processor_base gtest_processor_base.cpp
)
target_link_libraries
(
gtest_processor_base
PUBLIC
dummy
)
target_link_libraries
(
gtest_processor_base dummy
)
# ProcessorMotion class test
wolf_add_gtest
(
gtest_processor_motion gtest_processor_motion.cpp
)
...
...
@@ -208,11 +208,11 @@ wolf_add_gtest(gtest_processor_and_factor_pose_3d_with_extrinsics gtest_processo
# ProcessorTrackerFeatureDummy class test
wolf_add_gtest
(
gtest_processor_tracker_feature_dummy gtest_processor_tracker_feature_dummy.cpp
)
target_link_libraries
(
gtest_processor_tracker_feature_dummy
PUBLIC
dummy
)
target_link_libraries
(
gtest_processor_tracker_feature_dummy dummy
)
# ProcessorTrackerLandmarkDummy class test
wolf_add_gtest
(
gtest_processor_tracker_landmark_dummy gtest_processor_tracker_landmark_dummy.cpp
)
target_link_libraries
(
gtest_processor_tracker_landmark_dummy
PUBLIC
dummy
)
target_link_libraries
(
gtest_processor_tracker_landmark_dummy dummy
)
# SensorDiffDriveSelfcalib class test
wolf_add_gtest
(
gtest_sensor_diff_drive gtest_sensor_diff_drive.cpp
)
...
...
This diff is collapsed.
Click to expand it.
test/gtest/CMakeLists.txt
+
1
−
1
View file @
3b2d08e9
...
...
@@ -74,7 +74,7 @@ function(wolf_add_gtest target)
target_link_libraries
(
${
target
}
libgtest
${
PLUGIN_NAME
}
)
target_include_directories
(
${
target
}
PUBLIC
${
GTEST_INCLUDE_DIRS
}
)
else
()
target_link_libraries
(
${
target
}
PUBLIC
gtest_main
${
PLUGIN_NAME
}
)
target_link_libraries
(
${
target
}
gtest_main
${
PLUGIN_NAME
}
)
endif
()
add_test
(
NAME
${
target
}
COMMAND
${
target
}
)
endfunction
()
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