From 0f8f4b8c6b3fa4ab5fbb70249a4e285e5239e378 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 15 Jun 2024 07:55:51 +0200 Subject: [PATCH] run tests only in debug build --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b33b1de..652bdb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,4 +12,6 @@ MESSAGE(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}") PROJECT(feierabend-c) ADD_SUBDIRECTORY(src) -ADD_SUBDIRECTORY(tests) \ No newline at end of file +IF(${CMAKE_BUILD_TYPE} STREQUAL "Debug") + ADD_SUBDIRECTORY(tests) +ENDIF() \ No newline at end of file -- 2.39.5