23 lines
669 B
CMake
23 lines
669 B
CMake
|
|
# VehicleManage — 载具管理(共享库 / DLL)
|
||
|
|
add_library(VehicleManage SHARED
|
||
|
|
src/Vehicle.cpp
|
||
|
|
src/VehicleManage.cpp
|
||
|
|
inc/Vehicle.h
|
||
|
|
inc/VehicleManage.h
|
||
|
|
inc/VehicleType.h
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(VehicleManage PUBLIC
|
||
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(VehicleManage PUBLIC
|
||
|
|
Qt${QT_VERSION_MAJOR}::Core
|
||
|
|
Qt${QT_VERSION_MAJOR}::Widgets
|
||
|
|
mavlink_headers
|
||
|
|
)
|
||
|
|
|
||
|
|
target_compile_definitions(VehicleManage PRIVATE VEHICLEMANAGE_LIBRARY)
|
||
|
|
set_target_properties(VehicleManage PROPERTIES PREFIX "" SUFFIX ".dll" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/plugins/VehicleManage")
|