29 lines
598 B
CMake
29 lines
598 B
CMake
|
|
# 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"
|
||
|
|
)
|