mirror-ghostty/example/c-vt-cmake-cross/README.md

518 B

c-vt-cmake-cross

Demonstrates using ghostty_vt_add_target() to cross-compile libghostty-vt with static linking. The target OS is chosen automatically:

Host Target
Linux Windows (MinGW)
Windows Linux (glibc)
macOS Linux (glibc)

Override with -DZIG_TARGET=... if needed.

Building

cd example/c-vt-cmake-cross
cmake -B build -DFETCHCONTENT_SOURCE_DIR_GHOSTTY=../..
cmake --build build
file build/c_vt_cmake_cross