@@ -54,6 +54,8 @@ option(BUILD_PYTHON_BINDINGS "Build Python bindings" ON)
54
54
option (BUILD_MATLAB_BINDINGS "Build Matlab bindings" ON )
55
55
option (BUILD_CUDA_LIB "Build CUDA library" OFF )
56
56
option (BUILD_EXAMPLES "Build examples" ON )
57
+ option (BUILD_TESTS "Build tests" ON )
58
+ option (BUILD_DOC "Build documentation" ON )
57
59
option (USE_OPENMP "Use OpenMP multi-threading" ON )
58
60
option (USE_MPI "Use MPI" OFF )
59
61
@@ -158,8 +160,12 @@ add_subdirectory( src )
158
160
if (BUILD_EXAMPLES )
159
161
add_subdirectory ( examples )
160
162
endif (BUILD_EXAMPLES )
161
- add_subdirectory ( test )
162
- add_subdirectory ( doc )
163
+ if (BUILD_TESTS )
164
+ add_subdirectory ( test )
165
+ endif (BUILD_TESTS )
166
+ if (BUILD_DOC )
167
+ add_subdirectory ( doc )
168
+ endif (BUILD_DOC )
163
169
164
170
165
171
# CPACK options
@@ -202,6 +208,9 @@ include(CPack)
202
208
message (STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX} " )
203
209
message (STATUS "Build type: ${CMAKE_BUILD_TYPE} " )
204
210
message (STATUS "Building C bindings: ${BUILD_C_BINDINGS} " )
211
+ message (STATUS "Building examples: ${BUILD_EXAMPLES} " )
212
+ message (STATUS "Building tests: ${BUILD_TESTS} " )
213
+ message (STATUS "Building documentation: ${BUILD_DOC} " )
205
214
message (STATUS "Building python bindings: ${BUILD_PYTHON_BINDINGS} " )
206
215
message (STATUS "Building matlab bindings: ${BUILD_MATLAB_BINDINGS} " )
207
216
message (STATUS "Building CUDA library: ${BUILD_CUDA_LIB} " )
0 commit comments