fix for c++20 on linux
This commit is contained in:
@@ -18,6 +18,10 @@ find_program(SLANGC
|
||||
PATHS /opt/shader-slang-bin/bin
|
||||
)
|
||||
|
||||
# stb_image
|
||||
add_library(stb_image STATIC libs/stb/stb_image.c)
|
||||
target_include_directories(stb_image INTERFACE libs/stb)
|
||||
|
||||
function(add_shader name)
|
||||
set(INPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/assets/shader/${name}.slang)
|
||||
set(OUTPUT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/assets/shader/${name}.h)
|
||||
@@ -46,6 +50,7 @@ add_executable(mikemon
|
||||
target_link_libraries(mikemon
|
||||
PRIVATE
|
||||
SDL3::SDL3
|
||||
stb_image
|
||||
)
|
||||
add_dependencies(mikemon
|
||||
basic_vertex_shader
|
||||
|
||||
Reference in New Issue
Block a user