Skip to content

Commit

Permalink
Add DAVIX_TESTS cmake flag to entirely disable building all tests (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbitzes committed Jul 25, 2019
1 parent 78de96a commit 6890126
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ option(ENABLE_THIRD_PARTY_COPY "enable or disable third party copy support" FALS

# tests
option(BENCH_TESTS "enable or disable the bench tests" FALSE)
option(DAVIX_TESTS "Flag to disable the building of all tests" TRUE)

# libs checks
find_package(Threads)
Expand Down Expand Up @@ -118,8 +119,9 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/dist/CMakeLists.txt")
add_subdirectory (dist)
endif()

add_subdirectory (test)

if(DAVIX_TESTS)
add_subdirectory (test)
endif()

#############################################################################
## headers
Expand Down

0 comments on commit 6890126

Please sign in to comment.