This commit is contained in:
2025-11-23 10:28:49 +05:30
parent fa7045e8c3
commit 133f1ef52b
10 changed files with 68 additions and 56 deletions

View File

@ -11,6 +11,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
project(IACore)
# Default to ON if root, OFF if dependency
option(IACore_BUILD_TESTS "Build unit tests" ${PROJECT_IS_TOP_LEVEL})
message(STATUS "Detected Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
# Check if the compiler is MSVC (cl.exe), but allow Clang acting like MSVC (clang-cl)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
@ -42,6 +45,6 @@ add_subdirectory(Vendor/)
add_subdirectory(Src/)
if(IA_BUILD_TESTS)
add_subdirectory(Tests/)
if(IACore_BUILD_TESTS)
add_subdirectory(Tests)
endif()