Răsfoiți Sursa

Added a separate folder for experimental/test projects

BearishSun 8 ani în urmă
părinte
comite
a6b7c9f135
2 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  1. 1 0
      .gitignore
  2. 10 0
      Source/CMakeLists.txt

+ 1 - 0
.gitignore

@@ -22,3 +22,4 @@ Build
 *.opendb
 BsEngineConfig.h
 BsFrameworkConfig.h
+Source/Experimental

+ 10 - 0
Source/CMakeLists.txt

@@ -193,6 +193,13 @@ function(add_engine_dependencies target_name)
 	add_dependencies(${target_name} BansheeMono BansheeSL BansheeOISInput BansheePhysX RenderBeast SBansheeEngine)
 endfunction()
 
+function(add_subdirectory_optional subdir_name)
+	get_filename_component(fullPath ${subdir_name} ABSOLUTE)
+	if(EXISTS ${fullPath}/CMakeLists.txt)
+		add_subdirectory(${subdir_name})
+	endif()
+endfunction()
+
 set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)
 
 # Code generation for script bindings
@@ -258,6 +265,9 @@ if(BUILD_EDITOR OR (INCLUDE_ALL_IN_WORKFLOW AND MSVC))
 	add_subdirectory(Game)
 endif()
 
+## Local experimental projects (not part of main repository)
+add_subdirectory_optional(Experimental/PBS)
+
 ## Managed projects
 if(MSVC)
 	if(BUILD_EDITOR)