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
Merge requests
!3
Resolve "Add GTests"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add GTests"
25-add-gtests
into
master
Overview
0
Commits
1
Pipelines
0
Changes
9
Merged
Joan Vallvé Navarro
requested to merge
25-add-gtests
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
9
Expand
Closes
#25 (closed)
Edited
4 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
26974dac
1 commit,
4 years ago
9 files
+
285
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
CMakeLists.txt
+
22
−
1
Options
@@ -26,6 +26,16 @@ message(STATUS "Configured to compile in ${CMAKE_BUILD_TYPE} mode.")
SET
(
CMAKE_CXX_FLAGS_DEBUG
"-g -Wall -D_REENTRANT"
)
SET
(
CMAKE_CXX_FLAGS_RELEASE
"-O3 -D_REENTRANT"
)
#Build tests
IF
(
NOT BUILD_TESTS
)
OPTION
(
BUILD_TESTS
"Build Unit tests"
ON
)
ENDIF
(
NOT BUILD_TESTS
)
#Build demos
IF
(
NOT BUILD_DEMOS
)
OPTION
(
BUILD_DEMOS
"Build demos"
ON
)
ENDIF
(
NOT BUILD_DEMOS
)
#Set compiler according C++11 support
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
COMPILER_SUPPORTS_CXX11
)
@@ -40,9 +50,20 @@ else()
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
endif
()
ADD_SUBDIRECTORY
(
src
)
#Build tests
IF
(
BUILD_TESTS
)
# Enables testing for this directory and below.
# Note that ctest expects to find a test file in the build directory root.
# Therefore, this command should be in the source directory root.
#include(CTest) # according to http://public.kitware.com/pipermail/cmake/2012-June/050853.html
MESSAGE
(
"Building tests."
)
enable_testing
()
set
(
_LASER_SCAN_UTILS_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
add_subdirectory
(
test
)
ENDIF
(
BUILD_TESTS
)
FIND_PACKAGE
(
Doxygen
)
FIND_PATH
(
IRI_DOC_DIR doxygen.conf
${
CMAKE_SOURCE_DIR
}
/doc/iri_doc/
)
Loading