29 lines
633 B
CMake
29 lines
633 B
CMake
# Create shared library
|
|
add_library(BasaltDirectX11Engine SHARED "")
|
|
# Setup sources
|
|
target_sources(BasaltDirectX11Engine
|
|
PRIVATE
|
|
main.cpp
|
|
)
|
|
# Setup header infomation
|
|
target_include_directories(BasaltDirectX11Engine
|
|
PRIVATE
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
|
)
|
|
# Setup linked library infomation
|
|
target_link_libraries(BasaltDirectX11Engine
|
|
PRIVATE
|
|
BasaltShared
|
|
${DirectX11_LIBRARY}
|
|
)
|
|
# Enable export macro
|
|
target_compile_definitions(BasaltDirectX11Engine
|
|
PRIVATE
|
|
BS_EXPORTING
|
|
)
|
|
|
|
# Install BasaltDirectX11Engine only on Release mode
|
|
install(TARGETS BasaltDirectX11Engine
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugin/engine"
|
|
)
|