- Commit
- 137004f13e2f39b10aaa94bcc76059fdde9957bc
- Parent
- f1b1e2ec71f50a00850db3a68c421a2d79bba115
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Merge pull request #77 from kainjow/master
Add option to disable tests
My personal build of CMark ✏️
Merge pull request #77 from kainjow/master
Add option to disable tests
1 file changed, 9 insertions, 3 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | CMakeLists.txt | 12 | 9 | 3 |
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -13,11 +13,17 @@ set(PROJECT_VERSION_MINOR 21) set(PROJECT_VERSION_PATCH 0) set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} ) +option(CMARK_TESTS "Build cmark tests and enable testing" ON) + add_subdirectory(src) -add_subdirectory(api_test) +if(CMARK_TESTS) + add_subdirectory(api_test) +endif() add_subdirectory(man) -enable_testing() -add_subdirectory(test testdir) +if(CMARK_TESTS) + enable_testing() + add_subdirectory(test testdir) +endif() if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING