Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
laser_scan_utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
labrobotica
algorithms
laser_scan_utils
Commits
8f3d02f5
Commit
8f3d02f5
authored
1 year ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
renamed cmake function add_gtest
parent
d53b14f2
No related branches found
No related tags found
1 merge request
!13
Main
Pipeline
#17630
failed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/CMakeLists.txt
+4
-4
4 additions, 4 deletions
test/CMakeLists.txt
test/gtest/CMakeLists.txt
+1
-1
1 addition, 1 deletion
test/gtest/CMakeLists.txt
with
5 additions
and
5 deletions
test/CMakeLists.txt
+
4
−
4
View file @
8f3d02f5
...
...
@@ -4,18 +4,18 @@ add_subdirectory(gtest)
############# USE THIS TEST AS AN EXAMPLE ####################
# #
# Create a specific test executable for gtest_example #
#
laser_scan_utils_
add_gtest(gtest_example gtest_example.cpp)#
# add_gtest(gtest_example gtest_example.cpp)#
# #
##############################################################
# gtest example
laser_scan_utils_
add_gtest
(
gtest_example gtest_example.cpp
)
add_gtest
(
gtest_example gtest_example.cpp
)
# gtest icp
IF
(
csm_FOUND
)
laser_scan_utils_
add_gtest
(
gtest_icp gtest_icp.cpp
)
add_gtest
(
gtest_icp gtest_icp.cpp
)
ENDIF
(
csm_FOUND
)
IF
(
falkolib_FOUND
)
laser_scan_utils_
add_gtest
(
gtest_loop_closure_falko gtest_loop_closure_falko.cpp
)
add_gtest
(
gtest_loop_closure_falko gtest_loop_closure_falko.cpp
)
ENDIF
(
falkolib_FOUND
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/gtest/CMakeLists.txt
+
1
−
1
View file @
8f3d02f5
...
...
@@ -8,7 +8,7 @@ FetchContent_Declare(
SET
(
INSTALL_GTEST OFF
)
# Disable installation of googletest
FetchContent_MakeAvailable
(
googletest
)
function
(
${
PROJECT_NAME
}
_
add_gtest target
)
function
(
add_gtest target
)
add_executable
(
${
target
}
${
ARGN
}
)
target_link_libraries
(
${
target
}
PUBLIC gtest_main
${
PLUGIN_NAME
}
)
add_test
(
NAME
${
target
}
COMMAND
${
target
}
)
...
...
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