finish buggy dx11 code
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user