Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Stack Of Tasks
pinocchio
Commits
c9186700
Commit
c9186700
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Add BUILD_UNIT_TESTS as option
parent
3a37c885
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
travis_custom/custom_build
+1
-1
1 addition, 1 deletion
travis_custom/custom_build
unittest/CMakeLists.txt
+3
-3
3 additions, 3 deletions
unittest/CMakeLists.txt
with
5 additions
and
4 deletions
CMakeLists.txt
+
1
−
0
View file @
c9186700
...
...
@@ -47,6 +47,7 @@ ENDIF(WIN32)
# --- OPTIONS ----------------------------------------
OPTION
(
BUILD_BENCHMARK
"Build the benchmarks"
OFF
)
OPTION
(
BUILD_UNIT_TESTS
"Build the unitary tests"
ON
)
OPTION
(
BUILD_UTILS
"Build the utils"
OFF
)
OPTION
(
INITIALIZE_WITH_NAN
"Initialize Eigen entries with NaN"
OFF
)
OPTION
(
BUILD_TESTS_WITH_HPP
"Build geom tests and benchmarks with hpp to do comparisons"
OFF
)
...
...
This diff is collapsed.
Click to expand it.
travis_custom/custom_build
+
1
−
1
View file @
c9186700
...
...
@@ -6,7 +6,7 @@ set -x
set
-v
# Setup environment variables.
export
CMAKE_ADDITIONAL_OPTIONS
=
"
${
CMAKE_ADDITIONAL_OPTIONS
}
-DBUILD_BENCHMARK=
\"
ON
\"
-D
COMP
IL
E
_UNIT_TESTS=
1
"
export
CMAKE_ADDITIONAL_OPTIONS
=
"
${
CMAKE_ADDITIONAL_OPTIONS
}
-DBUILD_BENCHMARK=
\"
ON
\"
-D
BU
IL
D
_UNIT_TESTS=
\"
ON
\"
"
export
PKG_CONFIG_PATH
=
"
${
PKG_CONFIG_PATH
}
:/opt/openrobots/lib/pkgconfig"
export
LD_LIBRARY_PATH
=
"
${
LD_LIBRARY_PATH
}
:/opt/openrobots/lib"
# Setup environment variables.
...
...
This diff is collapsed.
Click to expand it.
unittest/CMakeLists.txt
+
3
−
3
View file @
c9186700
...
...
@@ -19,11 +19,11 @@
# --- MACROS ------------------------------------------------------------------
# --- MACROS ------------------------------------------------------------------
MACRO
(
ADD_UNIT_TEST NAME PKGS
)
IF
(
COMP
IL
E
_UNIT_TESTS
)
IF
(
BU
IL
D
_UNIT_TESTS
)
ADD_EXECUTABLE
(
${
NAME
}
${
NAME
}
)
ELSE
(
COMP
IL
E
_UNIT_TESTS
)
ELSE
(
BU
IL
D
_UNIT_TESTS
)
ADD_EXECUTABLE
(
${
NAME
}
EXCLUDE_FROM_ALL
${
NAME
}
)
ENDIF
(
COMP
IL
E
_UNIT_TESTS
)
ENDIF
(
BU
IL
D
_UNIT_TESTS
)
FOREACH
(
PKG
${
PKGS
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
NAME
}
${
PKG
}
)
ENDFOREACH
(
PKG
)
...
...
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