init commit
This commit is contained in:
@@ -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>)
|
||||
Reference in New Issue
Block a user