Commit 0b8f544b authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Add a cache variable to allow not running tests.

parent 6b8b8a5b
...@@ -56,8 +56,16 @@ if (EIGEN3_FOUND) ...@@ -56,8 +56,16 @@ if (EIGEN3_FOUND)
endif (FCL_HAVE_EIGEN) endif (FCL_HAVE_EIGEN)
endif (EIGEN3_FOUND) 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 # 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() search_for_boost()
# Optional dependencies # Optional dependencies
add_optional_dependency("octomap >= 1.6") add_optional_dependency("octomap >= 1.6")
...@@ -170,7 +178,9 @@ SET(${PROJECT_NAME}_HEADERS ...@@ -170,7 +178,9 @@ SET(${PROJECT_NAME}_HEADERS
) )
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(test) if (RUN_TESTS)
add_subdirectory(test)
endif ()
pkg_config_append_libs("hpp-fcl") pkg_config_append_libs("hpp-fcl")
PKG_CONFIG_APPEND_BOOST_LIBS(thread date_time filesystem system) PKG_CONFIG_APPEND_BOOST_LIBS(thread date_time filesystem system)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment