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
52e92b94
Commit
52e92b94
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
gtest target_link_libraries inside function
parent
6b797a55
No related branches found
No related tags found
2 merge requests
!451
After cmake and const refactor
,
!445
Resolve "Refactoring WOLF installation system"
Pipeline
#10274
canceled
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/CMakeLists.txt
+10
-80
10 additions, 80 deletions
test/CMakeLists.txt
test/gtest/CMakeLists.txt
+2
-2
2 additions, 2 deletions
test/gtest/CMakeLists.txt
with
12 additions
and
82 deletions
test/CMakeLists.txt
+
10
−
80
View file @
52e92b94
# Retrieve googletest from github & compile
# Retrieve googletest from github & compile
add_subdirectory
(
gtest
)
add_subdirectory
(
gtest
)
# Include gtest directory.
# if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
# message("CMake version less than 3.11.0")
# include_directories(${GTEST_INCLUDE_DIRS})
# endif()
############# USE THIS TEST AS AN EXAMPLE #################
# #
# Create a specific test executable for gtest_example #
wolf_add_gtest
(
gtest_example gtest_example.cpp
)
#
target_link_libraries
(
gtest_example
${
PLUGIN_NAME
}
)
#
# #
##########################################################
set
(
SRC_DUMMY
set
(
SRC_DUMMY
dummy/processor_tracker_feature_dummy.cpp
dummy/processor_tracker_feature_dummy.cpp
dummy/processor_tracker_landmark_dummy.cpp
dummy/processor_tracker_landmark_dummy.cpp
...
@@ -21,274 +8,217 @@ set(SRC_DUMMY
...
@@ -21,274 +8,217 @@ set(SRC_DUMMY
)
)
add_library
(
dummy SHARED
${
SRC_DUMMY
}
)
add_library
(
dummy SHARED
${
SRC_DUMMY
}
)
target_link_libraries
(
dummy
${
PLUGIN_NAME
}
)
target_link_libraries
(
dummy
${
PLUGIN_NAME
}
)
############# USE THIS TEST AS AN EXAMPLE #################
# #
# Create a specific test executable for gtest_example #
wolf_add_gtest
(
gtest_example gtest_example.cpp
)
#
# #
###########################################################
################ ADD YOUR TESTS BELOW ####################
################ ADD YOUR TESTS BELOW ####################
# #
# #
# ==== IN ALPHABETICAL ORDER! ==== #
# ==== IN ALPHABETICAL ORDER! ==== #
# #
# #
##########################################################
# ------- First Core classes ----------
# ------- First Core classes ----------
# BufferFrame
# BufferFrame
wolf_add_gtest
(
gtest_buffer_frame gtest_buffer_frame.cpp
)
wolf_add_gtest
(
gtest_buffer_frame gtest_buffer_frame.cpp
)
target_link_libraries
(
gtest_buffer_frame
${
PLUGIN_NAME
}
dummy
)
# CaptureBase class test
# CaptureBase class test
wolf_add_gtest
(
gtest_capture_base gtest_capture_base.cpp
)
wolf_add_gtest
(
gtest_capture_base gtest_capture_base.cpp
)
target_link_libraries
(
gtest_capture_base
${
PLUGIN_NAME
}
)
# Converter from String to various types used by the parameters server
# Converter from String to various types used by the parameters server
wolf_add_gtest
(
gtest_converter gtest_converter.cpp
)
wolf_add_gtest
(
gtest_converter gtest_converter.cpp
)
target_link_libraries
(
gtest_converter
${
PLUGIN_NAME
}
)
# FactorBase class test
# FactorBase class test
wolf_add_gtest
(
gtest_factor_base gtest_factor_base.cpp
)
wolf_add_gtest
(
gtest_factor_base gtest_factor_base.cpp
)
target_link_libraries
(
gtest_factor_base
${
PLUGIN_NAME
}
)
# FactorAutodiff class test
# FactorAutodiff class test
wolf_add_gtest
(
gtest_factor_autodiff gtest_factor_autodiff.cpp
)
wolf_add_gtest
(
gtest_factor_autodiff gtest_factor_autodiff.cpp
)
target_link_libraries
(
gtest_factor_autodiff
${
PLUGIN_NAME
}
)
# Factory test
# Factory test
wolf_add_gtest
(
gtest_factory gtest_factory.cpp
)
wolf_add_gtest
(
gtest_factory gtest_factory.cpp
)
target_link_libraries
(
gtest_factory
${
PLUGIN_NAME
}
dummy
)
# FactoryStateBlock factory test
# FactoryStateBlock factory test
wolf_add_gtest
(
gtest_factory_state_block gtest_factory_state_block.cpp
)
wolf_add_gtest
(
gtest_factory_state_block gtest_factory_state_block.cpp
)
target_link_libraries
(
gtest_factory_state_block
${
PLUGIN_NAME
}
)
# Node Emplace test
# Node Emplace test
wolf_add_gtest
(
gtest_emplace gtest_emplace.cpp
)
wolf_add_gtest
(
gtest_emplace gtest_emplace.cpp
)
target_link_libraries
(
gtest_emplace
${
PLUGIN_NAME
}
dummy
)
# FeatureBase classes test
# FeatureBase classes test
wolf_add_gtest
(
gtest_feature_base gtest_feature_base.cpp
)
wolf_add_gtest
(
gtest_feature_base gtest_feature_base.cpp
)
target_link_libraries
(
gtest_feature_base
${
PLUGIN_NAME
}
)
# FrameBase classes test
# FrameBase classes test
wolf_add_gtest
(
gtest_frame_base gtest_frame_base.cpp
)
wolf_add_gtest
(
gtest_frame_base gtest_frame_base.cpp
)
target_link_libraries
(
gtest_frame_base
${
PLUGIN_NAME
}
)
# GraphSearch class test
# GraphSearch class test
wolf_add_gtest
(
gtest_graph_search gtest_graph_search.cpp
)
wolf_add_gtest
(
gtest_graph_search gtest_graph_search.cpp
)
target_link_libraries
(
gtest_graph_search
${
PLUGIN_NAME
}
)
# HasStateBlocks classes test
# HasStateBlocks classes test
wolf_add_gtest
(
gtest_has_state_blocks gtest_has_state_blocks.cpp
)
wolf_add_gtest
(
gtest_has_state_blocks gtest_has_state_blocks.cpp
)
target_link_libraries
(
gtest_has_state_blocks
${
PLUGIN_NAME
}
)
# IsMotion classes test
# IsMotion classes test
wolf_add_gtest
(
gtest_motion_provider gtest_motion_provider.cpp
)
wolf_add_gtest
(
gtest_motion_provider gtest_motion_provider.cpp
)
target_link_libraries
(
gtest_motion_provider
${
PLUGIN_NAME
}
)
# LocalParametrizationXxx classes test
# LocalParametrizationXxx classes test
wolf_add_gtest
(
gtest_local_param gtest_local_param.cpp
)
wolf_add_gtest
(
gtest_local_param gtest_local_param.cpp
)
target_link_libraries
(
gtest_local_param
${
PLUGIN_NAME
}
)
# Logging test
# Logging test
wolf_add_gtest
(
gtest_logging gtest_logging.cpp
)
wolf_add_gtest
(
gtest_logging gtest_logging.cpp
)
target_link_libraries
(
gtest_logging
${
PLUGIN_NAME
}
)
# MotionBuffer class test
# MotionBuffer class test
wolf_add_gtest
(
gtest_motion_buffer gtest_motion_buffer.cpp
)
wolf_add_gtest
(
gtest_motion_buffer gtest_motion_buffer.cpp
)
target_link_libraries
(
gtest_motion_buffer
${
PLUGIN_NAME
}
)
# Parameters server
# Parameters server
wolf_add_gtest
(
gtest_param_server gtest_param_server.cpp
${
CMAKE_CURRENT_LIST_DIR
}
)
wolf_add_gtest
(
gtest_param_server gtest_param_server.cpp
${
CMAKE_CURRENT_LIST_DIR
}
)
target_link_libraries
(
gtest_param_server
${
PLUGIN_NAME
}
)
# YAML parser
# YAML parser
wolf_add_gtest
(
gtest_parser_yaml gtest_parser_yaml.cpp
)
wolf_add_gtest
(
gtest_parser_yaml gtest_parser_yaml.cpp
)
target_link_libraries
(
gtest_parser_yaml
${
PLUGIN_NAME
}
)
# Problem class test
# Problem class test
wolf_add_gtest
(
gtest_problem gtest_problem.cpp
)
wolf_add_gtest
(
gtest_problem gtest_problem.cpp
)
target_link_libraries
(
gtest_problem
${
PLUGIN_NAME
}
dummy
)
# ProcessorBase class test
# ProcessorBase class test
wolf_add_gtest
(
gtest_processor_base gtest_processor_base.cpp
)
wolf_add_gtest
(
gtest_processor_base gtest_processor_base.cpp
)
target_link_libraries
(
gtest_processor_base
${
PLUGIN_NAME
}
dummy
)
# ProcessorMotion class test
# ProcessorMotion class test
wolf_add_gtest
(
gtest_processor_motion gtest_processor_motion.cpp
)
wolf_add_gtest
(
gtest_processor_motion gtest_processor_motion.cpp
)
target_link_libraries
(
gtest_processor_motion
${
PLUGIN_NAME
}
)
# Rotation test
# Rotation test
wolf_add_gtest
(
gtest_rotation gtest_rotation.cpp
)
wolf_add_gtest
(
gtest_rotation gtest_rotation.cpp
)
target_link_libraries
(
gtest_rotation
${
PLUGIN_NAME
}
)
# SE3 test
# SE3 test
wolf_add_gtest
(
gtest_SE3 gtest_SE3.cpp
)
wolf_add_gtest
(
gtest_SE3 gtest_SE3.cpp
)
target_link_libraries
(
gtest_SE3
${
PLUGIN_NAME
}
)
# SE2 test
# SE2 test
wolf_add_gtest
(
gtest_SE2 gtest_SE2.cpp
)
wolf_add_gtest
(
gtest_SE2 gtest_SE2.cpp
)
target_link_libraries
(
gtest_SE2
${
PLUGIN_NAME
}
)
# SensorBase test
# SensorBase test
wolf_add_gtest
(
gtest_sensor_base gtest_sensor_base.cpp
)
wolf_add_gtest
(
gtest_sensor_base gtest_sensor_base.cpp
)
target_link_libraries
(
gtest_sensor_base
${
PLUGIN_NAME
}
)
# shared_from_this test
# shared_from_this test
wolf_add_gtest
(
gtest_shared_from_this gtest_shared_from_this.cpp
)
wolf_add_gtest
(
gtest_shared_from_this gtest_shared_from_this.cpp
)
target_link_libraries
(
gtest_shared_from_this
${
PLUGIN_NAME
}
)
# SolverManager test
# SolverManager test
wolf_add_gtest
(
gtest_solver_manager gtest_solver_manager.cpp
)
wolf_add_gtest
(
gtest_solver_manager gtest_solver_manager.cpp
)
target_link_libraries
(
gtest_solver_manager
${
PLUGIN_NAME
}
)
# SolverManagerMultithread test
# SolverManagerMultithread test
wolf_add_gtest
(
gtest_solver_manager_multithread gtest_solver_manager_multithread.cpp
)
wolf_add_gtest
(
gtest_solver_manager_multithread gtest_solver_manager_multithread.cpp
)
target_link_libraries
(
gtest_solver_manager_multithread
${
PLUGIN_NAME
}
)
# StateBlock class test
# StateBlock class test
wolf_add_gtest
(
gtest_state_block gtest_state_block.cpp
)
wolf_add_gtest
(
gtest_state_block gtest_state_block.cpp
)
target_link_libraries
(
gtest_state_block
${
PLUGIN_NAME
}
)
# StateBlock class test
# StateBlock class test
wolf_add_gtest
(
gtest_state_composite gtest_state_composite.cpp
)
wolf_add_gtest
(
gtest_state_composite gtest_state_composite.cpp
)
target_link_libraries
(
gtest_state_composite
${
PLUGIN_NAME
}
)
# TimeStamp class test
# TimeStamp class test
wolf_add_gtest
(
gtest_time_stamp gtest_time_stamp.cpp
)
wolf_add_gtest
(
gtest_time_stamp gtest_time_stamp.cpp
)
target_link_libraries
(
gtest_time_stamp
${
PLUGIN_NAME
}
)
# TrackMatrix class test
# TrackMatrix class test
wolf_add_gtest
(
gtest_track_matrix gtest_track_matrix.cpp
)
wolf_add_gtest
(
gtest_track_matrix gtest_track_matrix.cpp
)
target_link_libraries
(
gtest_track_matrix
${
PLUGIN_NAME
}
)
# TrajectoryBase class test
# TrajectoryBase class test
wolf_add_gtest
(
gtest_trajectory gtest_trajectory.cpp
)
wolf_add_gtest
(
gtest_trajectory gtest_trajectory.cpp
)
target_link_libraries
(
gtest_trajectory
${
PLUGIN_NAME
}
)
# TreeManager class test
# TreeManager class test
wolf_add_gtest
(
gtest_tree_manager gtest_tree_manager.cpp
)
wolf_add_gtest
(
gtest_tree_manager gtest_tree_manager.cpp
)
target_link_libraries
(
gtest_tree_manager
${
PLUGIN_NAME
}
)
# ------- Now Derived classes ----------
# ------- Now Derived classes ----------
# FactorAbs(P/O/V) classes test
# FactorAbs(P/O/V) classes test
wolf_add_gtest
(
gtest_factor_absolute gtest_factor_absolute.cpp
)
wolf_add_gtest
(
gtest_factor_absolute gtest_factor_absolute.cpp
)
target_link_libraries
(
gtest_factor_absolute
${
PLUGIN_NAME
}
)
# FactorAutodiffDistance3d test
# FactorAutodiffDistance3d test
wolf_add_gtest
(
gtest_factor_autodiff_distance_3d gtest_factor_autodiff_distance_3d.cpp
)
wolf_add_gtest
(
gtest_factor_autodiff_distance_3d gtest_factor_autodiff_distance_3d.cpp
)
target_link_libraries
(
gtest_factor_autodiff_distance_3d
${
PLUGIN_NAME
}
)
# FactorBlockDifference class test
# FactorBlockDifference class test
wolf_add_gtest
(
gtest_factor_block_difference gtest_factor_block_difference.cpp
)
wolf_add_gtest
(
gtest_factor_block_difference gtest_factor_block_difference.cpp
)
target_link_libraries
(
gtest_factor_block_difference
${
PLUGIN_NAME
}
)
# FactorDiffDrive class test
# FactorDiffDrive class test
wolf_add_gtest
(
gtest_factor_diff_drive gtest_factor_diff_drive.cpp
)
wolf_add_gtest
(
gtest_factor_diff_drive gtest_factor_diff_drive.cpp
)
target_link_libraries
(
gtest_factor_diff_drive
${
PLUGIN_NAME
}
)
# FactorOdom2dAutodiff class test
# FactorOdom2dAutodiff class test
wolf_add_gtest
(
gtest_factor_odom_2d_autodiff gtest_factor_odom_2d_autodiff.cpp
)
wolf_add_gtest
(
gtest_factor_odom_2d_autodiff gtest_factor_odom_2d_autodiff.cpp
)
target_link_libraries
(
gtest_factor_odom_2d_autodiff
${
PLUGIN_NAME
}
)
# FactorPose2d class test
# FactorPose2d class test
wolf_add_gtest
(
gtest_factor_pose_2d gtest_factor_pose_2d.cpp
)
wolf_add_gtest
(
gtest_factor_pose_2d gtest_factor_pose_2d.cpp
)
target_link_libraries
(
gtest_factor_pose_2d
${
PLUGIN_NAME
}
)
# FactorPose3d class test
# FactorPose3d class test
wolf_add_gtest
(
gtest_factor_pose_3d gtest_factor_pose_3d.cpp
)
wolf_add_gtest
(
gtest_factor_pose_3d gtest_factor_pose_3d.cpp
)
target_link_libraries
(
gtest_factor_pose_3d
${
PLUGIN_NAME
}
)
# FactorRelativePose2d class test
# FactorRelativePose2d class test
wolf_add_gtest
(
gtest_factor_relative_pose_2d gtest_factor_relative_pose_2d.cpp
)
wolf_add_gtest
(
gtest_factor_relative_pose_2d gtest_factor_relative_pose_2d.cpp
)
target_link_libraries
(
gtest_factor_relative_pose_2d
${
PLUGIN_NAME
}
)
# FactorRelativePose2dWithExtrinsics class test
# FactorRelativePose2dWithExtrinsics class test
wolf_add_gtest
(
gtest_factor_relative_pose_2d_with_extrinsics gtest_factor_relative_pose_2d_with_extrinsics.cpp
)
wolf_add_gtest
(
gtest_factor_relative_pose_2d_with_extrinsics gtest_factor_relative_pose_2d_with_extrinsics.cpp
)
target_link_libraries
(
gtest_factor_relative_pose_2d_with_extrinsics
${
PLUGIN_NAME
}
)
# FactorRelativePose3d class test
# FactorRelativePose3d class test
wolf_add_gtest
(
gtest_factor_relative_pose_3d gtest_factor_relative_pose_3d.cpp
)
wolf_add_gtest
(
gtest_factor_relative_pose_3d gtest_factor_relative_pose_3d.cpp
)
target_link_libraries
(
gtest_factor_relative_pose_3d
${
PLUGIN_NAME
}
)
# FactorRelativePose3dWithExtrinsics class test
# FactorRelativePose3dWithExtrinsics class test
wolf_add_gtest
(
gtest_factor_relative_pose_3d_with_extrinsics gtest_factor_relative_pose_3d_with_extrinsics.cpp
)
wolf_add_gtest
(
gtest_factor_relative_pose_3d_with_extrinsics gtest_factor_relative_pose_3d_with_extrinsics.cpp
)
target_link_libraries
(
gtest_factor_relative_pose_3d_with_extrinsics
${
PLUGIN_NAME
}
)
# FactorVelocityLocalDirection3d class test
# FactorVelocityLocalDirection3d class test
wolf_add_gtest
(
gtest_factor_velocity_local_direction_3d gtest_factor_velocity_local_direction_3d.cpp
)
wolf_add_gtest
(
gtest_factor_velocity_local_direction_3d gtest_factor_velocity_local_direction_3d.cpp
)
target_link_libraries
(
gtest_factor_velocity_local_direction_3d
${
PLUGIN_NAME
}
)
# MakePosDef function test
# MakePosDef function test
wolf_add_gtest
(
gtest_make_posdef gtest_make_posdef.cpp
)
wolf_add_gtest
(
gtest_make_posdef gtest_make_posdef.cpp
)
target_link_libraries
(
gtest_make_posdef
${
PLUGIN_NAME
}
)
# Map yaml save/load test
# Map yaml save/load test
wolf_add_gtest
(
gtest_map_yaml gtest_map_yaml.cpp
)
wolf_add_gtest
(
gtest_map_yaml gtest_map_yaml.cpp
)
target_link_libraries
(
gtest_map_yaml
${
PLUGIN_NAME
}
)
# Parameter prior test
# Parameter prior test
wolf_add_gtest
(
gtest_param_prior gtest_param_prior.cpp
)
wolf_add_gtest
(
gtest_param_prior gtest_param_prior.cpp
)
target_link_libraries
(
gtest_param_prior
${
PLUGIN_NAME
}
)
# ProcessorFixedWingModel class test
# ProcessorFixedWingModel class test
wolf_add_gtest
(
gtest_processor_fixed_wing_model gtest_processor_fixed_wing_model.cpp
)
wolf_add_gtest
(
gtest_processor_fixed_wing_model gtest_processor_fixed_wing_model.cpp
)
target_link_libraries
(
gtest_processor_fixed_wing_model
${
PLUGIN_NAME
}
)
# ProcessorDiffDrive class test
# ProcessorDiffDrive class test
wolf_add_gtest
(
gtest_processor_diff_drive gtest_processor_diff_drive.cpp
)
wolf_add_gtest
(
gtest_processor_diff_drive gtest_processor_diff_drive.cpp
)
target_link_libraries
(
gtest_processor_diff_drive
${
PLUGIN_NAME
}
)
# ProcessorLoopClosure class test
# ProcessorLoopClosure class test
wolf_add_gtest
(
gtest_processor_loop_closure gtest_processor_loop_closure.cpp
)
wolf_add_gtest
(
gtest_processor_loop_closure gtest_processor_loop_closure.cpp
)
target_link_libraries
(
gtest_processor_loop_closure
${
PLUGIN_NAME
}
)
# ProcessorFrameNearestNeighborFilter class test
# ProcessorFrameNearestNeighborFilter class test
# wolf_add_gtest(gtest_processor_frame_nearest_neighbor_filter_2d gtest_processor_frame_nearest_neighbor_filter_2d.cpp)
# wolf_add_gtest(gtest_processor_frame_nearest_neighbor_filter_2d gtest_processor_frame_nearest_neighbor_filter_2d.cpp)
# target_link_libraries(gtest_processor_frame_nearest_neighbor_filter_2d ${PLUGIN_NAME})
# ProcessorMotion in 2d
# ProcessorMotion in 2d
wolf_add_gtest
(
gtest_odom_2d gtest_odom_2d.cpp
)
wolf_add_gtest
(
gtest_odom_2d gtest_odom_2d.cpp
)
target_link_libraries
(
gtest_odom_2d
${
PLUGIN_NAME
}
)
# ProcessorOdom3d class test
# ProcessorOdom3d class test
wolf_add_gtest
(
gtest_processor_odom_3d gtest_processor_odom_3d.cpp
)
wolf_add_gtest
(
gtest_processor_odom_3d gtest_processor_odom_3d.cpp
)
target_link_libraries
(
gtest_processor_odom_3d
${
PLUGIN_NAME
}
)
# FactorPose3dWithExtrinsics class test
# FactorPose3dWithExtrinsics class test
wolf_add_gtest
(
gtest_processor_and_factor_pose_3d_with_extrinsics gtest_processor_and_factor_pose_3d_with_extrinsics.cpp
)
wolf_add_gtest
(
gtest_processor_and_factor_pose_3d_with_extrinsics gtest_processor_and_factor_pose_3d_with_extrinsics.cpp
)
target_link_libraries
(
gtest_processor_and_factor_pose_3d_with_extrinsics
${
PLUGIN_NAME
}
)
# ProcessorTrackerFeatureDummy class test
# ProcessorTrackerFeatureDummy class test
wolf_add_gtest
(
gtest_processor_tracker_feature_dummy gtest_processor_tracker_feature_dummy.cpp
)
wolf_add_gtest
(
gtest_processor_tracker_feature_dummy gtest_processor_tracker_feature_dummy.cpp
)
target_link_libraries
(
gtest_processor_tracker_feature_dummy
${
PLUGIN_NAME
}
dummy
)
# ProcessorTrackerLandmarkDummy class test
# ProcessorTrackerLandmarkDummy class test
wolf_add_gtest
(
gtest_processor_tracker_landmark_dummy gtest_processor_tracker_landmark_dummy.cpp
)
wolf_add_gtest
(
gtest_processor_tracker_landmark_dummy gtest_processor_tracker_landmark_dummy.cpp
)
target_link_libraries
(
gtest_processor_tracker_landmark_dummy
${
PLUGIN_NAME
}
dummy
)
# SensorDiffDriveSelfcalib class test
# SensorDiffDriveSelfcalib class test
wolf_add_gtest
(
gtest_sensor_diff_drive gtest_sensor_diff_drive.cpp
)
wolf_add_gtest
(
gtest_sensor_diff_drive gtest_sensor_diff_drive.cpp
)
target_link_libraries
(
gtest_sensor_diff_drive
${
PLUGIN_NAME
}
)
# SensorDiffDriveSelfcalib class test
# SensorDiffDriveSelfcalib class test
wolf_add_gtest
(
gtest_sensor_pose gtest_sensor_pose.cpp
)
wolf_add_gtest
(
gtest_sensor_pose gtest_sensor_pose.cpp
)
target_link_libraries
(
gtest_sensor_pose
${
PLUGIN_NAME
}
)
IF
(
Ceres_FOUND
)
IF
(
Ceres_FOUND
)
# SolverCeres test
# SolverCeres test
wolf_add_gtest
(
gtest_solver_ceres gtest_solver_ceres.cpp
)
wolf_add_gtest
(
gtest_solver_ceres gtest_solver_ceres.cpp
)
target_link_libraries
(
gtest_solver_ceres
${
PLUGIN_NAME
}
)
# SolverCeresMultithread test
# SolverCeresMultithread test
wolf_add_gtest
(
gtest_solver_ceres_multithread gtest_solver_ceres_multithread.cpp
)
wolf_add_gtest
(
gtest_solver_ceres_multithread gtest_solver_ceres_multithread.cpp
)
target_link_libraries
(
gtest_solver_ceres_multithread
${
PLUGIN_NAME
}
)
ENDIF
(
Ceres_FOUND
)
ENDIF
(
Ceres_FOUND
)
# TreeManagerSlidingWindow class test
# TreeManagerSlidingWindow class test
wolf_add_gtest
(
gtest_tree_manager_sliding_window gtest_tree_manager_sliding_window.cpp
)
wolf_add_gtest
(
gtest_tree_manager_sliding_window gtest_tree_manager_sliding_window.cpp
)
target_link_libraries
(
gtest_tree_manager_sliding_window
${
PLUGIN_NAME
}
)
# TreeManagerSlidingWindowDualRate class test
# TreeManagerSlidingWindowDualRate class test
wolf_add_gtest
(
gtest_tree_manager_sliding_window_dual_rate gtest_tree_manager_sliding_window_dual_rate.cpp
)
wolf_add_gtest
(
gtest_tree_manager_sliding_window_dual_rate gtest_tree_manager_sliding_window_dual_rate.cpp
)
target_link_libraries
(
gtest_tree_manager_sliding_window_dual_rate
${
PLUGIN_NAME
}
)
# yaml conversions
# yaml conversions
wolf_add_gtest
(
gtest_yaml_conversions gtest_yaml_conversions.cpp
)
wolf_add_gtest
(
gtest_yaml_conversions gtest_yaml_conversions.cpp
)
target_link_libraries
(
gtest_yaml_conversions
${
PLUGIN_NAME
}
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/gtest/CMakeLists.txt
+
2
−
2
View file @
52e92b94
...
@@ -71,10 +71,10 @@ function(wolf_add_gtest target)
...
@@ -71,10 +71,10 @@ function(wolf_add_gtest target)
add_executable
(
${
target
}
${
ARGN
}
)
add_executable
(
${
target
}
${
ARGN
}
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.11.0"
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.11.0"
)
add_dependencies
(
${
target
}
libgtest
)
add_dependencies
(
${
target
}
libgtest
)
target_link_libraries
(
${
target
}
libgtest
)
target_link_libraries
(
${
target
}
libgtest
${
PLUGIN_NAME
}
dummy
)
target_include_directories
(
${
target
}
PUBLIC
${
GTEST_INCLUDE_DIRS
}
)
target_include_directories
(
${
target
}
PUBLIC
${
GTEST_INCLUDE_DIRS
}
)
else
()
else
()
target_link_libraries
(
${
target
}
PUBLIC gtest_main
)
target_link_libraries
(
${
target
}
PUBLIC gtest_main
${
PLUGIN_NAME
}
dummy
)
endif
()
endif
()
add_test
(
NAME
${
target
}
COMMAND
${
target
}
)
add_test
(
NAME
${
target
}
COMMAND
${
target
}
)
endfunction
()
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