Files
gui/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

34 lines
996 B
CMake

# D-Modem's desktop apps: the shared C core (libdmodemctl), and the
# Linux app (GTK 4 and libadwaita) when its libraries are there, or the
# Windows app with MinGW or MSVC. The Windows 95 build of the Windows
# app (windows/build-watcom.sh) and the macOS app (macos/) build with
# their own tools and take the core from here.
cmake_minimum_required(VERSION 3.16)
project(dmodem-gui VERSION 1.0.0 LANGUAGES C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
option(DMODEM_GUI_LINUX "Build the GTK 4 app (linux/)" ON)
add_subdirectory(core)
enable_testing()
add_subdirectory(core/test)
add_subdirectory(ssh)
if(WIN32)
add_subdirectory(windows)
endif()
if(DMODEM_GUI_LINUX AND UNIX AND NOT APPLE)
find_package(PkgConfig)
if(PkgConfig_FOUND)
pkg_check_modules(GTK IMPORTED_TARGET gtk4>=4.10 libadwaita-1>=1.5)
endif()
if(GTK_FOUND)
add_subdirectory(linux)
else()
message(STATUS "gtk4 or libadwaita-1 not found: the Linux app is not built")
endif()
endif()