summaryrefslogtreecommitdiff
blob: 35df4632eae552b5c3bdd48b58c1039be09abd0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -59,8 +59,13 @@
     DESTINATION lib${LIB_SUFFIX}/pkgconfig
     )
 
+
+option(BUILD_TESTS "Build tests" ON)
+
 add_subdirectory(src)
-add_subdirectory(tests)
+if(BUILD_TESTS)
+    add_subdirectory(tests)
+endif(BUILD_TESTS)
 add_subdirectory(tools)
 
 if(WITH_DOC)