Skip to content

Commit

Permalink
chore: update thrid party
Browse files Browse the repository at this point in the history
  • Loading branch information
jyxiong committed Nov 10, 2024
1 parent 5638060 commit bb03ff7
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "external/VulkanMemoryAllocator"]
path = external/VulkanMemoryAllocator
url = [email protected]:GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
[submodule "external/fmt"]
path = external/fmt
url = [email protected]:fmtlib/fmt.git
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)

project(procometject CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down
6 changes: 1 addition & 5 deletions cmake/glsl.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
add_executable(glslang::validator IMPORTED)
find_program(GLSLANG_VALIDATOR "glslangValidator" HINTS ${CMAKE_BINARY_DIR}/bin REQUIRED)
set_property(TARGET glslang::validator PROPERTY IMPORTED_LOCATION ${GLSLANG_VALIDATOR})

macro(compile_glsl GLSL_SHADER SPV_SHADER SPV_SHADERS)
add_custom_command(
OUTPUT ${SPV_SHADER}
COMMAND glslang::validator
COMMAND glslang-standalone
ARGS ${GLSL_SHADER} --target-env vulkan1.3 -o ${SPV_SHADER}
MAIN_DEPENDENCY ${GLSL_SHADER}
WORKING_DIRECTORY ${CMAKE_SHADERS_OUTPUT_DIRECTORY}
Expand Down
7 changes: 6 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
set(EXTERNAL_DIR "external")

if (NOT fmt)
add_subdirectory(fmt)
set_target_properties(fmt PROPERTIES FOLDER ${EXTERNAL_DIR}/fmt)
endif ()

if (NOT TARGET glfw)
option(GLFW_BUILD_EXAMPLES "" OFF)
option(GLFW_BUILD_TESTS "" OFF)
Expand Down Expand Up @@ -35,7 +40,7 @@ if (NOT TARGET imgui)
endif ()

if (NOT TARGET spdlog)
option(SPDLOG_USE_STD_FORMAT "" ON)
option(SPDLOG_FMT_EXTERNAL "" ON)
add_subdirectory(spdlog)
set_target_properties(spdlog PROPERTIES FOLDER ${EXTERNAL_DIR}/spdlog)
endif ()
Expand Down
1 change: 1 addition & 0 deletions external/fmt
Submodule fmt added at 0041a4
2 changes: 1 addition & 1 deletion external/glslang
Submodule glslang updated 701 files
2 changes: 1 addition & 1 deletion external/volk
Submodule volk updated 3 files
+11 −10 CMakeLists.txt
+87 −15 volk.c
+59 −11 volk.h

0 comments on commit bb03ff7

Please sign in to comment.