15 lines
672 B
CMake
15 lines
672 B
CMake
|
|
# ServoSystem — 舵机系统插件(共享库 / DLL)
|
||
|
|
add_library(ServoSystemPlugin SHARED
|
||
|
|
ServoSystemPlugin.h
|
||
|
|
ServoSystemPlugin.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(ServoSystemPlugin PUBLIC PluginSDK ToolsUIPlugin Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets)
|
||
|
|
set_target_properties(ServoSystemPlugin PROPERTIES PREFIX "" SUFFIX ".dll" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/plugins/ServoSystem")
|
||
|
|
|
||
|
|
add_custom_command(TARGET ServoSystemPlugin POST_BUILD
|
||
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/plugin.json"
|
||
|
|
"${CMAKE_BINARY_DIR}/bin/plugins/ServoSystem/plugin.json"
|
||
|
|
)
|