diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d6beda..fac367f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,6 @@ if(BGFX_BUILD_TOOLS AND BGFX_CUSTOM_TARGETS) set_target_properties(tools PROPERTIES FOLDER "bgfx/tools") endif() -include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/shared.cmake) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cmake/bx) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cmake/bimg) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cmake/bgfx) diff --git a/cmake/bgfx/CMakeLists.txt b/cmake/bgfx/CMakeLists.txt index 2af54c8..01febc4 100644 --- a/cmake/bgfx/CMakeLists.txt +++ b/cmake/bgfx/CMakeLists.txt @@ -12,6 +12,7 @@ include(bgfx.cmake) include(3rdparty/meshoptimizer.cmake) include(3rdparty/dear-imgui.cmake) +include(shared.cmake) include(examples.cmake) if(BGFX_BUILD_TOOLS_TEXTURE) diff --git a/generated/bounds.cpp.in b/cmake/bgfx/generated/bounds.cpp.in similarity index 100% rename from generated/bounds.cpp.in rename to cmake/bgfx/generated/bounds.cpp.in diff --git a/generated/shader.cpp.in b/cmake/bgfx/generated/shader.cpp.in similarity index 100% rename from generated/shader.cpp.in rename to cmake/bgfx/generated/shader.cpp.in diff --git a/generated/vertexlayout.cpp.in b/cmake/bgfx/generated/vertexlayout.cpp.in similarity index 100% rename from generated/vertexlayout.cpp.in rename to cmake/bgfx/generated/vertexlayout.cpp.in diff --git a/cmake/shared.cmake b/cmake/bgfx/shared.cmake similarity index 100% rename from cmake/shared.cmake rename to cmake/bgfx/shared.cmake