Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
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
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
gnss_utils
Commits
c6867f70
Commit
c6867f70
authored
1 year ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
add_gtest
parent
fa1c821a
No related branches found
No related tags found
1 merge request
!28
Main
Pipeline
#17632
failed
1 year ago
Stage: license
Stage: build_and_test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/CMakeLists.txt
+6
-6
6 additions, 6 deletions
test/CMakeLists.txt
test/gtest/CMakeLists.txt
+2
-2
2 additions, 2 deletions
test/gtest/CMakeLists.txt
with
8 additions
and
8 deletions
test/CMakeLists.txt
+
6
−
6
View file @
c6867f70
...
...
@@ -4,21 +4,21 @@ add_subdirectory(gtest)
############# USE THIS TEST AS AN EXAMPLE ####################
# #
# Create a specific test executable for gtest_example #
#
gnss_utils_
add_gtest(gtest_example gtest_example.cpp) #
# add_gtest(gtest_example gtest_example.cpp)
#
# #
##############################################################
# Navigation test
gnss_utils_
add_gtest
(
gtest_navigation gtest_navigation.cpp
)
add_gtest
(
gtest_navigation gtest_navigation.cpp
)
# Observations test
gnss_utils_
add_gtest
(
gtest_observations gtest_observations.cpp
)
add_gtest
(
gtest_observations gtest_observations.cpp
)
# TDCP test
gnss_utils_
add_gtest
(
gtest_tdcp gtest_tdcp.cpp
)
add_gtest
(
gtest_tdcp gtest_tdcp.cpp
)
# Transformations test
gnss_utils_
add_gtest
(
gtest_transformations gtest_transformations.cpp
)
add_gtest
(
gtest_transformations gtest_transformations.cpp
)
# ChiSquare test
gnss_utils_add_gtest
(
gtest_chisquare gtest_chisquare.cpp
)
\ No newline at end of file
add_gtest
(
gtest_chisquare gtest_chisquare.cpp
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/gtest/CMakeLists.txt
+
2
−
2
View file @
c6867f70
...
...
@@ -8,8 +8,8 @@ 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
}
gtest_main
${
PLUGIN_NAME
}
)
target_link_libraries
(
${
target
}
PUBLIC
gtest_main
${
PLUGIN_NAME
}
)
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