1
0
Files
BasaltMeter/BasaltPresenter/Plugins/Deliver/CudaDeliver/CMakeLists.txt

29 lines
598 B
CMake
Raw Normal View History

2026-01-10 21:49:29 +08:00
# 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"
)