File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ project(sqlpp11 VERSION 0.1 LANGUAGES CXX)
28
28
29
29
enable_testing ()
30
30
31
+ option (ENABLE_TESTS "Build unit tests" On )
32
+
31
33
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake/Modules/" )
32
34
find_package (HinnantDate REQUIRED )
33
35
@@ -104,9 +106,11 @@ install(
104
106
${ConfigPackageLocation}
105
107
)
106
108
107
- add_subdirectory (tests )
108
- add_subdirectory (test_types )
109
- add_subdirectory (test_serializer )
110
- add_subdirectory (test_static_asserts )
111
- add_subdirectory (test_constraints )
112
- add_subdirectory (test_scripts )
109
+ if (ENABLE_TESTS )
110
+ add_subdirectory (tests )
111
+ add_subdirectory (test_types )
112
+ add_subdirectory (test_serializer )
113
+ add_subdirectory (test_static_asserts )
114
+ add_subdirectory (test_constraints )
115
+ add_subdirectory (test_scripts )
116
+ endif ()
You can’t perform that action at this time.
0 commit comments