first commit
This commit is contained in:
23
cmake/SoftbusPackage.cmake
Normal file
23
cmake/SoftbusPackage.cmake
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user