From 9b77e2e0be39130a68c98f40d9ac4495d8905221 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 12 Jul 2024 02:44:37 +0300 Subject: [PATCH] fix --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 909d358..b2cab68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,19 @@ cmake_minimum_required(VERSION 3.26) + + project(omath) set(CMAKE_CXX_STANDARD 26) -option(BUILD_TESTS "Build test programs" ON) + +option(BUILD_TESTS "Build unit tests" ON) + add_library(omath STATIC source/Vector3.cpp) add_subdirectory(source) add_subdirectory(extlibs) -add_subdirectory(tests) + +if(BUILD_TESTS) + add_subdirectory(tests) +endif () target_include_directories(omath PUBLIC include) \ No newline at end of file