added some files

This commit is contained in:
Vladislav Alpatov
2025-03-01 21:46:29 +03:00
committed by Orange
parent 27576ed761
commit e80e22bd5b
3 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ option(OMATH_THREAT_WARNING_AS_ERROR "Set highest level of warnings and force co
option(OMATH_BUILD_AS_SHARED_LIBRARY "Build Omath as .so or .dll" OFF)
option(OMATH_USE_AVX2 "Omath will use AVX2 to boost performance" ON)
option(OMATH_IMGUI_INTEGRATION "Omath will define method to convert omath types to imgui types" OFF)
option(OMATH_BUILD_EXAMPLES "Build example projects with you can learn & play" ON)
if (OMATH_BUILD_AS_SHARED_LIBRARY)
add_library(omath SHARED source/Vector3.cpp)
@@ -49,6 +50,10 @@ if(OMATH_BUILD_TESTS)
add_subdirectory(tests)
endif()
if (OMATH_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND OMATH_THREAT_WARNING_AS_ERROR)
target_compile_options(omath PRIVATE /W4 /WX)
elseif(OMATH_THREAT_WARNING_AS_ERROR)