1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
--- libcork-1.0.0~rc3.orig/CMakeLists.txt
+++ libcork-1.0.0~rc3/CMakeLists.txt
@@ -54,6 +54,7 @@
set(ENABLE_SHARED YES CACHE BOOL "Whether to build a shared library")
set(ENABLE_SHARED_EXECUTABLES NO CACHE BOOL
"Whether to link executables using shared libraries")
+set(BUILD_TESTING YES CACHE BOOL "Whether to build and run tests")
set(ENABLE_SHARED_TESTS NO CACHE BOOL
"Whether to link test cases using shared libraries")
set(ENABLE_STATIC YES CACHE BOOL "Whether to build a static library")
@@ -85,5 +86,7 @@
add_subdirectory(include)
add_subdirectory(share)
add_subdirectory(src)
-add_subdirectory(tests)
+if(BUILD_TESTING)
+ add_subdirectory(tests)
+endif(BUILD_TESTING)
add_subdirectory(docs/old)
|