File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ option(TD_INSTALL_STATIC_LIBRARIES "Enable installation of static libraries." ON
29
29
option (TD_INSTALL_SHARED_LIBRARIES "Enable installation of shared libraries." ON )
30
30
option (TD_ENABLE_JNI "Use \" ON\" to enable JNI-compatible TDLib API." )
31
31
option (TD_ENABLE_DOTNET "Use \" ON\" to enable generation of C++/CLI or C++/CX TDLib API bindings." )
32
+ option (TD_BUILD_BENCHMARK "Use \" OFF\" to disable benchmark" ON )
33
+ option (TD_BUILD_TESTING "Use \" OFF\" to disable testing" ON )
32
34
if (NOT CMAKE_CROSSCOMPILING )
33
35
option (TD_GENERATE_SOURCE_FILES "Use \" ON\" to just generate TDLib source files." )
34
36
endif ()
@@ -206,14 +208,14 @@ add_subdirectory(sqlite)
206
208
set (TDDB_ENABLE_INSTALL ${TD_INSTALL_STATIC_LIBRARIES} CACHE BOOL "" FORCE)
207
209
add_subdirectory (tddb)
208
210
209
- if (BUILD_TESTING)
211
+ if (TD_BUILD_TESTING AND BUILD_TESTING)
210
212
add_subdirectory (test )
211
213
endif ()
212
214
213
215
set (TDE2E_ENABLE_INSTALL ${TD_INSTALL_STATIC_LIBRARIES} CACHE BOOL "" FORCE)
214
216
add_subdirectory (tde2e)
215
217
216
- if (NOT CMAKE_CROSSCOMPILING )
218
+ if (TD_BUILD_BENCHMARK AND ( NOT CMAKE_CROSSCOMPILING ) )
217
219
add_subdirectory (benchmark)
218
220
endif ()
219
221
You can’t perform that action at this time.
0 commit comments