CMake/project reorg

This commit is contained in:
NaifBanana
2025-12-27 03:45:07 -06:00
parent 6134a66c71
commit de686e7daa
25 changed files with 44 additions and 27 deletions
+16 -4
View File
@@ -20,8 +20,20 @@ set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_library(NBEvents ./src/NBEvents/Events.cpp)
set(BUILD_TESTS)
add_subdirectory(./src/NBCoreUtils)
add_subdirectory(./src/NBWindow ./NBWindows)
add_subdirectory(./tests ./tests)
if (BUILD_TESTS)
include(FetchContent)
FetchContent_Declare(
gtest
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip
)
if (WIN32)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(gtest)
endif()
include(GoogleTest)
set(GTEST_COLOR ON)
endif()
add_subdirectory(./engine)