added files

This commit is contained in:
2024-11-27 15:21:07 +03:00
parent a25aef049e
commit 6e5f2331ad
10 changed files with 125 additions and 7 deletions

View File

@@ -23,10 +23,10 @@ if(OMATH_BUILD_TESTS)
add_subdirectory(tests)
endif()
if (WIN32 AND OMATH_THREAT_WARNING_AS_ERROR)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND OMATH_THREAT_WARNING_AS_ERROR)
target_compile_options(omath PRIVATE /W4 /WX)
elseif(UNIX AND OMATH_THREAT_WARNING_AS_ERROR)
target_compile_options(omath PRIVATE -Wall -Wextra -Wpedantic)
elseif(OMATH_THREAT_WARNING_AS_ERROR)
target_compile_options(omath PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif()
target_include_directories(omath