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
55c97280
Commit
55c97280
authored
Dec 04, 2019
by
Joseph Mirabel
Browse files
[CMake] Replace RUN_TESTS by BUILD_TESTING
parent
a02d95ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
55c97280
...
...
@@ -75,11 +75,11 @@ if (BUILD_PYTHON_INTERFACE)
endif
()
# Add a cache variable to allow not compiling and running tests
set
(
RUN
_TEST
S
TRUE CACHE BOOL
"compile and run unit tests"
)
set
(
BUILD
_TEST
ING
TRUE CACHE BOOL
"compile and run unit tests"
)
# Required dependencies
set
(
BOOST_COMPONENTS thread date_time system
)
if
(
RUN
_TEST
S
)
if
(
BUILD
_TEST
ING
)
set
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS
}
filesystem unit_test_framework chrono
)
endif
()
if
(
BUILD_PYTHON_INTERFACE
)
...
...
@@ -156,7 +156,7 @@ add_subdirectory(src)
if
(
BUILD_PYTHON_INTERFACE
)
add_subdirectory
(
python
)
endif
()
if
(
RUN
_TEST
S
)
if
(
BUILD
_TEST
ING
)
add_subdirectory
(
test
)
endif
()
...
...
test/CMakeLists.txt
View file @
55c97280
...
...
@@ -16,7 +16,7 @@ endmacro(add_fcl_test)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
IF
(
RUN
_TEST
S
)
IF
(
BUILD
_TEST
ING
)
add_library
(
utility STATIC utility.cpp
)
ELSE
()
add_library
(
utility STATIC EXCLUDE_FROM_ALL utility.cpp
)
...
...
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