prepare cuda deliver dev
This commit is contained in:
28
BasaltPresenter/Plugins/Deliver/CudaDeliver/CMakeLists.txt
Normal file
28
BasaltPresenter/Plugins/Deliver/CudaDeliver/CMakeLists.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
# Create shared library
|
||||
add_library(BasaltCudaDeliver SHARED "")
|
||||
# Setup sources
|
||||
target_sources(BasaltCudaDeliver
|
||||
PRIVATE
|
||||
main.cpp
|
||||
)
|
||||
# Setup header infomation
|
||||
target_include_directories(BasaltCudaDeliver
|
||||
PRIVATE
|
||||
"${CMAKE_CURRENT_LIST_DIR}"
|
||||
)
|
||||
# Setup linked library infomation
|
||||
target_link_libraries(BasaltCudaDeliver
|
||||
PRIVATE
|
||||
BasaltShared
|
||||
CUDA::cudart
|
||||
)
|
||||
# Enable export macro
|
||||
target_compile_definitions(BasaltCudaDeliver
|
||||
PRIVATE
|
||||
BS_EXPORTING
|
||||
)
|
||||
|
||||
# Install BasaltCudaDeliver only on Release mode
|
||||
install(TARGETS BasaltCudaDeliver
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugin/deliver"
|
||||
)
|
||||
Reference in New Issue
Block a user