2026-01-04 16:12:36 +08:00
|
|
|
# Create shared library
|
2026-01-04 23:11:58 +08:00
|
|
|
add_library(BasaltPipeDeliver SHARED "")
|
2026-01-04 16:12:36 +08:00
|
|
|
# Setup sources
|
2026-01-04 23:11:58 +08:00
|
|
|
target_sources(BasaltPipeDeliver
|
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(BasaltPipeDeliver
|
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(BasaltPipeDeliver
|
2026-01-04 16:12:36 +08:00
|
|
|
PRIVATE
|
|
|
|
|
BasaltShared
|
|
|
|
|
)
|
|
|
|
|
# Enable export macro
|
2026-01-04 23:11:58 +08:00
|
|
|
target_compile_definitions(BasaltPipeDeliver
|
2026-01-04 16:12:36 +08:00
|
|
|
PRIVATE
|
|
|
|
|
BS_EXPORTING
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-04 23:11:58 +08:00
|
|
|
# Install BasaltPipeDeliver only on Release mode
|
|
|
|
|
install(TARGETS BasaltPipeDeliver
|
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugin/deliver"
|
2026-01-04 16:12:36 +08:00
|
|
|
)
|