Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.7.2)

option(BUILD_TESTING "Build tests" ON)
option(KS_DEBUG_MUTEX "Debug mutexes, only works on linux for now" OFF)
option(KS_DEBUG_SPINLOCK "Debug spinlocks" OFF)
option(KS_DEBUG_POOL "Track pool allocations and provide hooks for rendering them" OFF)
Expand Down Expand Up @@ -609,8 +610,10 @@ endif()
#cotire(ks)

# Add tests
enable_testing()
add_subdirectory(tests)
if (BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()

if (WITH_KS_TEST)
enable_testing()
Expand Down