add_executable(torlinkc_tui main.cpp)
target_link_libraries(torlinkc_tui PRIVATE torlinkc_ui)
# Installed as "torlinkc" (the target/build-tree name stays torlinkc_tui,
# unchanged, so nothing else in the build has to know about the rename).
# install(TARGETS) has no RENAME option -- installing the built file
# directly via its generator expression is the standard way to rename it.
install(PROGRAMS $<TARGET_FILE:torlinkc_tui> DESTINATION bin RENAME torlinkc)