SmartLockerTools/Peripheral/CMakeLists.txt
2024-09-03 23:30:45 +08:00

24 lines
584 B
CMake

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS SerialPort)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS SerialPort)
set(CMAKE_AUTOMOC ON)
add_library(Peripheral
$<$<PLATFORM_ID:Windows>:DeviceDiscovery.h DeviceDiscovery.cpp>
CdcUpdater.h CdcUpdater.cpp
)
target_include_directories(Peripheral
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(Peripheral
PUBLIC Universal
PRIVATE Encrypt
PRIVATE Mfreadwrite
PRIVATE Mf
PRIVATE mfplat
PRIVATE mfuuid
PRIVATE Qt${QT_VERSION_MAJOR}::SerialPort
)