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
Humanoid Path Planner
hpp-model
Commits
65f22b55
Commit
65f22b55
authored
Dec 31, 2016
by
Florent Lamiraux
Browse files
Add a cache variable to disable unit tests.
parent
43f6270f
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
65f22b55
...
...
@@ -41,6 +41,9 @@ IF (HPP_DEBUG)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHPP_DEBUG"
)
ENDIF
()
# Add a cache variable to allow not compiling and running tests
set
(
RUN_TESTS TRUE CACHE BOOL
"compile and run unit tests"
)
# Declare headers
SET
(
${
PROJECT_NAME
}
_HEADERS
include/hpp/model/body.hh
...
...
@@ -63,8 +66,10 @@ SET(${PROJECT_NAME}_HEADERS
)
# Declare dependencies
SET
(
BOOST_COMPONENTS unit_test_framework
)
SEARCH_FOR_BOOST
()
IF
(
RUN_TESTS
)
SET
(
BOOST_COMPONENTS unit_test_framework
)
SEARCH_FOR_BOOST
()
ENDIF
()
ADD_REQUIRED_DEPENDENCY
(
"eigen3 >= 3.2"
)
ADD_REQUIRED_DEPENDENCY
(
"hpp-util >= 0.7"
)
...
...
@@ -75,7 +80,9 @@ ADD_OPTIONAL_DEPENDENCY("assimp")
CONFIGURE_FILE
(
doc/main.hh.in doc/main.hh
)
ADD_SUBDIRECTORY
(
src
)
ADD_SUBDIRECTORY
(
tests
)
IF
(
RUN_TESTS
)
ADD_SUBDIRECTORY
(
tests
)
ENDIF
()
# Add dependency toward hpp-model library in pkg-config file.
PKG_CONFIG_APPEND_LIBS
(
"hpp-model"
)
...
...
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