Files
gui/linux/CMakeLists.txt
T
Claude a630d0b455 Merge main: the engine's terminals, with SSH built in
SSH's shell asks for the terminal type the picker has, as Telnet and
rlogin do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:49:03 +00:00

44 lines
1.7 KiB
CMake

# The Linux (and BSD) app: GTK 4 and libadwaita over libdmodemctl
# (and libdmodemssh for the Remote page's SSH).
add_executable(dmodem-gui
src/main.c
src/window.c
src/modem.c
src/config.c
src/settings.c
src/stats.c
src/voice.c
src/remote.c
src/termview.c
src/audio.c)
target_link_libraries(dmodem-gui PRIVATE dmodemctl dmodemssh PkgConfig::GTK)
# the sound of voice calls: PulseAudio's client (PipeWire serves it
# too); without it the app has no sound
pkg_check_modules(PULSE IMPORTED_TARGET libpulse-mainloop-glib)
if(PULSE_FOUND)
target_link_libraries(dmodem-gui PRIVATE PkgConfig::PULSE)
target_compile_definitions(dmodem-gui PRIVATE HAVE_PULSE)
else()
message(STATUS "libpulse-mainloop-glib not found: the Linux app has no sound for voice calls")
endif()
# greetings from MP3, FLAC, Ogg and the like (WAV, AIFF and .au need
# nothing more)
pkg_check_modules(SNDFILE IMPORTED_TARGET sndfile)
if(SNDFILE_FOUND)
target_link_libraries(dmodem-gui PRIVATE PkgConfig::SNDFILE)
target_compile_definitions(dmodem-gui PRIVATE HAVE_SNDFILE)
else()
message(STATUS "libsndfile not found: greetings are read from WAV, AIFF and .au files only")
endif()
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)