37 lines
885 B
CMake
37 lines
885 B
CMake
add_library(dv_standard_shaders SHARED
|
|
dll_main.cpp
|
|
vs_standard.h
|
|
vs_standard.cpp
|
|
fs_debug_solid_color.h
|
|
fs_debug_solid_color.cpp
|
|
fs_debug_show_texture.h
|
|
fs_debug_show_texture.cpp
|
|
fs_debug_texture_coordinates.h
|
|
fs_debug_texture_coordinates.cpp
|
|
fs_debug_geometry_normal.h
|
|
fs_debug_geometry_normal.cpp
|
|
fs_classic_phong.h
|
|
fs_classic_phong.cpp
|
|
fs_pbr_gltf.h
|
|
fs_pbr_gltf.cpp
|
|
)
|
|
|
|
add_definitions(-DDV_SHADER_EXPORTS)
|
|
|
|
target_include_directories(dv_standard_shaders
|
|
PRIVATE
|
|
${DV_AUTO_INCLUDE_PATH}
|
|
${DV_CORE_INCLUDE_PATH}
|
|
)
|
|
|
|
target_link_libraries(dv_standard_shaders
|
|
dv_core
|
|
)
|
|
|
|
#################
|
|
# copy runtime dll(for debug)
|
|
#################
|
|
add_custom_command(
|
|
TARGET dv_standard_shaders POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:dv_standard_shaders> ${CMAKE_BINARY_DIR}/source/console/$<$<CONFIG:Debug>:Debug>$<$<CONFIG:Release>:Release>/)
|