2024-08-05 17:42:27 +08:00
|
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS SerialPort)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS SerialPort)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
2024-05-23 19:58:36 +08:00
|
|
|
add_library(Peripheral
|
2024-10-01 23:33:22 +08:00
|
|
|
DeviceDiscovery.h DeviceDiscovery.cpp
|
2024-08-05 17:42:27 +08:00
|
|
|
CdcUpdater.h CdcUpdater.cpp
|
2024-05-23 19:58:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(Peripheral
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Peripheral
|
|
|
|
PUBLIC Universal
|
2024-08-05 17:42:27 +08:00
|
|
|
PRIVATE Encrypt
|
2024-09-05 22:33:07 +08:00
|
|
|
$<$<PLATFORM_ID:Windows>:Mfreadwrite Mf mfplat mfuuid>
|
2024-08-05 17:42:27 +08:00
|
|
|
PRIVATE Qt${QT_VERSION_MAJOR}::SerialPort
|
2024-05-23 19:58:36 +08:00
|
|
|
)
|