Skip to content
GitLab
Menu
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-urdf
Commits
8175c5c6
Commit
8175c5c6
authored
Dec 31, 2016
by
Florent Lamiraux
Browse files
Add a cache variable to disable unit tests.
parent
8a2c5195
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8175c5c6
...
...
@@ -50,9 +50,14 @@ IF(CMAKE_BUILD_TYPE MATCHES "DEBUG")
ENDIF
(
CMAKE_COMPILER_IS_GNUCXX
)
ENDIF
(
CMAKE_BUILD_TYPE MATCHES
"DEBUG"
)
# Add a cache variable to allow not compiling and running tests
set
(
RUN_TESTS TRUE CACHE BOOL
"compile and run unit tests"
)
# Search for Boost.
# Boost.Test is used by the test suite.
SEARCH_FOR_BOOST
()
IF
(
RUN_TESTS
)
SEARCH_FOR_BOOST
()
ENDIF
()
# Search for dependecies.
ADD_REQUIRED_DEPENDENCY
(
"assimp"
)
...
...
@@ -86,7 +91,9 @@ INSTALL(FILES ${${PROJECT_NAME}_SRDF_HEADERS}
)
ADD_SUBDIRECTORY
(
src
)
IF
(
RUN_TESTS
)
ADD_SUBDIRECTORY
(
tests
)
ENDIF
()
PKG_CONFIG_APPEND_LIBS
(
${
PROJECT_NAME
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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