mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-29 06:10:52 +00:00
* Fix possible build error * [Linux] Read AirPods state from BLE broadcast when not connected * SImplify * Remove old code * Remove old code * Maintain charging state when state is unknown * Simplify * Remove unused var
70 lines
1.5 KiB
CMake
70 lines
1.5 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(linux VERSION 0.1 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(Qt6 6.4 REQUIRED COMPONENTS Quick Widgets Bluetooth DBus)
|
|
find_package(OpenSSL REQUIRED)
|
|
|
|
qt_standard_project_setup(REQUIRES 6.4)
|
|
|
|
qt_add_executable(applinux
|
|
main.cpp
|
|
logger.h
|
|
mediacontroller.cpp
|
|
mediacontroller.h
|
|
airpods_packets.h
|
|
trayiconmanager.cpp
|
|
trayiconmanager.h
|
|
enums.h
|
|
battery.hpp
|
|
BluetoothMonitor.cpp
|
|
BluetoothMonitor.h
|
|
autostartmanager.hpp
|
|
BasicControlCommand.hpp
|
|
deviceinfo.hpp
|
|
ble/bleutils.cpp
|
|
ble/bleutils.h
|
|
ble/blemanager.cpp
|
|
ble/blemanager.h
|
|
)
|
|
|
|
qt_add_qml_module(applinux
|
|
URI linux
|
|
VERSION 1.0
|
|
QML_FILES
|
|
Main.qml
|
|
BatteryIndicator.qml
|
|
SegmentedControl.qml
|
|
PodColumn.qml
|
|
Icon.qml
|
|
)
|
|
|
|
# Add the resource file
|
|
qt_add_resources(applinux "resources"
|
|
PREFIX "/icons"
|
|
FILES
|
|
assets/airpods.png
|
|
assets/pod.png
|
|
assets/pod_case.png
|
|
assets/pod3.png
|
|
assets/pod3_case.png
|
|
assets/pod4_case.png
|
|
assets/podpro.png
|
|
assets/podpro_case.png
|
|
assets/podmax.png
|
|
assets/fonts/SF-Symbols-6.ttf
|
|
)
|
|
|
|
target_link_libraries(applinux
|
|
PRIVATE Qt6::Quick Qt6::Widgets Qt6::Bluetooth Qt6::DBus OpenSSL::SSL OpenSSL::Crypto
|
|
)
|
|
|
|
include(GNUInstallDirs)
|
|
install(TARGETS applinux
|
|
BUNDLE DESTINATION .
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|