Skip to content

Commit

Permalink
Make testing optional
Browse files Browse the repository at this point in the history
  • Loading branch information
a4z committed May 10, 2024
1 parent 07f0c4e commit babb86e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ if(PROJECT_IS_TOP_LEVEL)
include(setup_compiler)
include(default_flags)

enable_testing()
include(testing)
add_subdirectory(tests)
include(CTest)
if (BUILD_TESTING)
include(testing)
add_subdirectory(tests)
endif()

option(ASTR_ADD_INSTALL "Add install target" ON)

Expand Down

0 comments on commit babb86e

Please sign in to comment.