We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ab785 commit 68e22b8Copy full SHA for 68e22b8
CMakeLists.txt
@@ -96,5 +96,7 @@ install(
96
)
97
98
# add the testsuite
99
-enable_testing()
100
-add_subdirectory("test")
+include(CTest)
+if(BUILD_TESTING AND TEST_DRIVE_BUILD_TESTING)
101
+ add_subdirectory("test")
102
+endif()
config/CMakeLists.txt
@@ -12,6 +12,7 @@
12
# limitations under the License.
13
14
option(BUILD_SHARED_LIBS "Whether the libraries built should be shared" FALSE)
15
+option(TEST_DRIVE_BUILD_TESTING "Enable testing for this project" ON)
16
17
set(
18
module-dir
0 commit comments