CMake adds files to global vars properly for documentation

This commit is contained in:
NaifBanana
2026-04-04 14:31:36 -05:00
parent 5ae4ac16b9
commit 0ac355a4a0
3 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -8,6 +8,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
function(toAbsolutePath SETVAR PATHS)
set(PATHS ${PATHS} ${ARGN})
set(RET_VAL "")
foreach(FILE ${PATHS})
get_filename_component(TMP
@@ -44,7 +45,6 @@ endif()
if(NB_BUILD_TESTS)
message(STATUS "Building tests")
enable_testing()
set(GLFW_BUILD_TESTS ON CACHE BOOL "" FORCE)
include(FetchContent)
FetchContent_Declare(
gtest
@@ -56,6 +56,7 @@ if(NB_BUILD_TESTS)
endif()
include(GoogleTest)
set(GTEST_COLOR ON)
set(GLFW_BUILD_TESTS ON CACHE BOOL "" FORCE)
endif()
if (NB_LOGGING)
@@ -72,7 +73,6 @@ endif()
# External Dep paths
set(GLFW_PATH ../glfw/)
set(GLAD_PATH ../glad/)
get_filename_component(GLFW_PATH ${GLFW_PATH} ABSOLUTE)
get_filename_component(GLAD_PATH ${GLAD_PATH} ABSOLUTE)