Skip to content

Commit a224af4

Browse files
committed
Add an option to disable testing.
This is useful for packaging CppInterOp.
1 parent 654359e commit a224af4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,13 @@ endif()
373373
option(CPPINTEROP_INCLUDE_DOCS "Generate build targets for the CppInterOp docs.")
374374
option(CPPINTEROP_ENABLE_DOXYGEN "Use doxygen to generate CppInterOp interal API documentation.")
375375
option(CPPINTEROP_ENABLE_SPHINX "Use sphinx to generage CppInterOp user documentation")
376+
option(CPPINTEROP_ENABLE_TESTING "Enables the testing infrastructure." ON)
376377

377378
if (CPPINTEROP_INCLUDE_DOCS)
378379
add_subdirectory(docs)
379380
endif()
380381

381382
add_subdirectory(lib)
382-
add_subdirectory(unittests)
383+
if (CPPINTEROP_ENABLE_TESTING)
384+
add_subdirectory(unittests)
385+
endif(CPPINTEROP_ENABLE_TESTING)

0 commit comments

Comments
 (0)