Browse Source

work around GLOB_RECURSE not... recursing... directories

AzaezelX 2 years ago
parent
commit
cc037f7306
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tools/CMake/modules/module_testing.cmake

+ 1 - 1
Tools/CMake/modules/module_testing.cmake

@@ -30,7 +30,7 @@ if(TORQUE_TESTING)
     set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "_VARIADIC_MAX=10")
     set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "_VARIADIC_MAX=10")
 
 
     # Add source files
     # Add source files
-    file(GLOB_RECURSE TORQUE_TESTING_SOURCES "testing/*.cpp" "testing/*.h" "*/test/*.cpp" "*/test/*.h")
+    file(GLOB_RECURSE TORQUE_TESTING_SOURCES "testing/*.cpp" "testing/*.h" "*/test/*.cpp" "*/test/*.h" "*/*/test/*.cpp" "*/*/test/*.h")
     set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_TESTING_SOURCES})
     set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_TESTING_SOURCES})
 project(gtest)
 project(gtest)
     # Add include paths
     # Add include paths