init commit

This commit is contained in:
2025-06-11 22:45:11 +08:00
commit 71307f3e53
115 changed files with 13922 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
add_library(TestShader SHARED
dll_main.cpp
test_vertex_shader.h
test_vertex_shader.cpp
test_vertex_shader.osl
test_pixel_shader.h
test_pixel_shader.cpp
test_pixel_shader.osl
)
add_definitions(-DDV_SHADER_EXPORTS)
target_include_directories(TestShader
PRIVATE
${DV_AUTO_INCLUDE_PATH}
${DV_CORE_INCLUDE_PATH}
)
target_link_libraries(TestShader
dv_core
)
#################
# copy runtime dll(for debug)
#################
add_custom_command(
TARGET TestShader POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:TestShader> ${CMAKE_BINARY_DIR}/source/console/$<$<CONFIG:Debug>:Debug>$<$<CONFIG:Release>:Release>)