projects
/
libcereal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece932e
)
build just the tests, as an option for autopkgtest later
author
Michael R. Crusoe
<crusoe@ucdavis.edu>
Wed, 13 Jan 2021 09:20:13 +0000
(10:20 +0100)
committer
Michael R. Crusoe
<crusoe@debian.org>
Wed, 13 Jan 2021 09:20:13 +0000
(10:20 +0100)
With assistance from Kevin D. Murray; thanks!
Gbp-Pq: Name add-only-tests-target
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index e4ffd720c5284e958c9795b05a989d6635d2a133..9a53ff138d4a895db81e2ee80db5eeae6c7a7547 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-46,6
+46,8
@@
else()
endif()
+option(ONLY_TESTS "Don't build docs, or sandbox" OFF)
+
if(NOT CMAKE_VERSION VERSION_LESS 3.0)
add_library(cereal INTERFACE)
target_include_directories(cereal INTERFACE
@@
-78,7
+80,8
@@
endif(Boost_FOUND)
enable_testing()
add_subdirectory(unittests)
-
-add_subdirectory(sandbox)
+if(NOT ONLY_TEST)
+ add_subdirectory(sandbox)
+endif(NOT ONLY_TEST)
add_subdirectory(doc)