Files
gui/linux/CMakeLists.txt
T
Claude bbcc1548c1 Linux app: GTK 4, libadwaita and VTE over libdmodemctl
Starts dmodemd as the user and opens its pty, or opens a modem that
already runs.  Five pages: Modem (state, dial, answer, hang up, start
and stop, the device for other programs), Terminal (a VTE on the modem,
with the full-screen and command-line setup), Settings (a row for each
of the modem's settings from AT!M, applied at once; the init string),
Call Stats (AT#UD as rows, and ATI11) and Log (dmodemd's output).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVTPinTtLUajudobBC
2026-11-06 13:39:50 +00:00

21 lines
801 B
CMake

# The Linux (and BSD) app: GTK 4, libadwaita and VTE over libdmodemctl.
add_executable(dmodem-gui
src/main.c
src/window.c
src/modem.c
src/config.c
src/settings.c
src/stats.c)
target_link_libraries(dmodem-gui PRIVATE dmodemctl PkgConfig::GTK)
target_compile_options(dmodem-gui PRIVATE -Wall -Wextra -Wno-unused-parameter)
include(GNUInstallDirs)
install(TARGETS dmodem-gui RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES data/io.github.d_modem.DModem.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES data/io.github.d_modem.DModem.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
install(FILES ${PROJECT_SOURCE_DIR}/assets/dmodem.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps
RENAME io.github.d_modem.DModem.svg)