24 lines
591 B
CMake
24 lines
591 B
CMake
# 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()
|