From 6a13f2a06e1d3b5e9e11b9c778334e88e80e354e Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 19 Jul 2026 13:00:55 +0000 Subject: [PATCH 24/71] feat(macos): install the contour binary to ${prefix}/bin Add install(TARGETS contour RUNTIME DESTINATION bin) so the app can be run from the install prefix rather than the build directory. Plain binary (not a .app bundle) to match running it from bin. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01AeG2jwYMX5gdvvtUnx3PJa --- src/contour_macos/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contour_macos/CMakeLists.txt b/src/contour_macos/CMakeLists.txt index 8930f864..ebd82c59 100644 --- a/src/contour_macos/CMakeLists.txt +++ b/src/contour_macos/CMakeLists.txt @@ -92,4 +92,7 @@ if(APPLE) "-framework Foundation" "-framework ApplicationServices" ) + + include(GNUInstallDirs) + install(TARGETS contour RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") endif()