Commit 89b053a5 authored by Ben Boeckel's avatar Ben Boeckel

cmake: add an option for building examples

parent 20bcc38d
......@@ -340,7 +340,10 @@ INSTALL(TARGETS QtTesting
ARCHIVE DESTINATION ${QtTesting_INSTALL_LIB_DIR} COMPONENT Development)
add_subdirectory(Examples)
option(BUILD_EXAMPLES "Build examples" OFF)
if (BUILD_EXAMPLES)
add_subdirectory(Examples)
endif ()
include(CTest)
IF(BUILD_TESTING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment