SmartLockerTools/Peripheral/CMakeLists.txt

24 lines
558 B
CMake
Raw Normal View History

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
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-06-13 15:41:40 +08:00
PRIVATE Mfreadwrite
PRIVATE Mf
PRIVATE mfplat
PRIVATE mfuuid
2024-08-05 17:42:27 +08:00
PRIVATE Qt${QT_VERSION_MAJOR}::SerialPort
2024-05-23 19:58:36 +08:00
)