1
0
Files
BasaltMeter/BasaltPresenter/Plugins/Engine/DirectX11Engine/CMakeLists.txt

29 lines
633 B
CMake
Raw Normal View History

2026-01-04 16:12:36 +08:00
# Create shared library
2026-01-04 23:11:58 +08:00
add_library(BasaltDirectX11Engine SHARED "")
2026-01-04 16:12:36 +08:00
# Setup sources
2026-01-04 23:11:58 +08:00
target_sources(BasaltDirectX11Engine
2026-01-04 16:12:36 +08:00
PRIVATE
main.cpp
)
# Setup header infomation
2026-01-04 23:11:58 +08:00
target_include_directories(BasaltDirectX11Engine
2026-01-04 16:12:36 +08:00
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}"
)
# Setup linked library infomation
2026-01-04 23:11:58 +08:00
target_link_libraries(BasaltDirectX11Engine
2026-01-04 16:12:36 +08:00
PRIVATE
BasaltShared
2026-01-04 17:16:54 +08:00
${DirectX11_LIBRARY}
2026-01-04 16:12:36 +08:00
)
# Enable export macro
2026-01-04 23:11:58 +08:00
target_compile_definitions(BasaltDirectX11Engine
2026-01-04 16:12:36 +08:00
PRIVATE
BS_EXPORTING
)
2026-01-04 23:11:58 +08:00
# Install BasaltDirectX11Engine only on Release mode
install(TARGETS BasaltDirectX11Engine
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugin/engine"
2026-01-04 16:12:36 +08:00
)