1
0

finish buggy dx11 code

This commit is contained in:
2026-01-04 23:11:58 +08:00
parent a66d3dee8b
commit 7b234ec405
12 changed files with 432 additions and 219 deletions

View File

@@ -1,28 +1,28 @@
# Create shared library
add_library(DirectX11Engine SHARED "")
add_library(BasaltDirectX11Engine SHARED "")
# Setup sources
target_sources(DirectX11Engine
target_sources(BasaltDirectX11Engine
PRIVATE
main.cpp
)
# Setup header infomation
target_include_directories(DirectX11Engine
target_include_directories(BasaltDirectX11Engine
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}"
)
# Setup linked library infomation
target_link_libraries(DirectX11Engine
target_link_libraries(BasaltDirectX11Engine
PRIVATE
BasaltShared
${DirectX11_LIBRARY}
)
# Enable export macro
target_compile_definitions(DirectX11Engine
target_compile_definitions(BasaltDirectX11Engine
PRIVATE
BS_EXPORTING
)
# Install DirectX11Engine only on Release mode
install(TARGETS DirectX11Engine
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugins/engine"
# Install BasaltDirectX11Engine only on Release mode
install(TARGETS BasaltDirectX11Engine
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugin/engine"
)