mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 20:20:24 +08:00
4d52db6bb8
* Update mp-units to 0.7.0 * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
31 lines
704 B
Diff
31 lines
704 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b18a30a96..d89248aa1 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -66,11 +66,21 @@ conan_init(cmake)
|
|
add_subdirectory(src)
|
|
|
|
# add usage example
|
|
-add_subdirectory(example)
|
|
+option(BUILD_EXAMPLES "Build usage examples" OFF)
|
|
+if(BUILD_EXAMPLES)
|
|
+ add_subdirectory(example)
|
|
+endif()
|
|
|
|
# generate project documentation
|
|
-add_subdirectory(docs)
|
|
+option(BUILD_DOCS "Generate docs" OFF)
|
|
+if(BUILD_DOCS)
|
|
+ add_subdirectory(docs)
|
|
+endif()
|
|
|
|
# add unit tests
|
|
-enable_testing()
|
|
-add_subdirectory(test)
|
|
+option(BUILD_TESTING "Build tests" OFF)
|
|
+if(BUILD_TESTING)
|
|
+ set_warnings(mp-units)
|
|
+ enable_testing()
|
|
+ add_subdirectory(test)
|
|
+endif()
|