Files
softbus_OPC/cmake/SoftbusPackage.cmake

24 lines
591 B
CMake
Raw Permalink Normal View History

2026-06-09 16:50:28 +08:00
# ROS-like package registration helper
macro(softbus_package name)
set(SOFTBUS_CURRENT_PACKAGE ${name})
endmacro()
function(softbus_export_include target include_dir)
target_include_directories(${target}
PUBLIC
$<BUILD_INTERFACE:${include_dir}>
$<INSTALL_INTERFACE:include>
)
endfunction()
function(softbus_add_plugin target)
set_target_properties(${target} PROPERTIES
PREFIX ""
OUTPUT_NAME ${target}
)
if(WIN32)
target_compile_definitions(${target} PRIVATE SOFTBUS_PLUGIN_EXPORTS)
endif()
endfunction()