Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
0b8f544b
Commit
0b8f544b
authored
Dec 29, 2016
by
Florent Lamiraux
Browse files
Add a cache variable to allow not running tests.
parent
6b8b8a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0b8f544b
...
...
@@ -56,8 +56,16 @@ if (EIGEN3_FOUND)
endif
(
FCL_HAVE_EIGEN
)
endif
(
EIGEN3_FOUND
)
# Add a cache variable to allow not compiling and running tests
set
(
RUN_TESTS TRUE CACHE BOOL
"compile and run unit tests"
)
# Required dependencies
set
(
BOOST_COMPONENTS thread date_time filesystem system unit_test_framework
)
if
(
RUN_TESTS
)
set
(
BOOST_COMPONENTS thread date_time filesystem system unit_test_framework
)
else
()
set
(
BOOST_COMPONENTS thread date_time system
)
endif
()
search_for_boost
()
# Optional dependencies
add_optional_dependency
(
"octomap >= 1.6"
)
...
...
@@ -170,7 +178,9 @@ SET(${PROJECT_NAME}_HEADERS
)
add_subdirectory
(
src
)
add_subdirectory
(
test
)
if
(
RUN_TESTS
)
add_subdirectory
(
test
)
endif
()
pkg_config_append_libs
(
"hpp-fcl"
)
PKG_CONFIG_APPEND_BOOST_LIBS
(
thread date_time filesystem system
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment