build(win): ocultar consola al lanzar (WIN32_EXECUTABLE TRUE)

El .exe se enlazaba como console app (mingw default), lo que
abría una ventana de consola negra al lanzarlo desde el escritorio.
WIN32_EXECUTABLE TRUE hace que CMake pase -mwindows al linker
(SUBSYSTEM:WINDOWS), dejando solo la ventana ImGui.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-24 14:36:04 +02:00
parent de76cd9ff9
commit fa7982727c
+2
View File
@@ -41,4 +41,6 @@ target_link_libraries(registry_dashboard PRIVATE SQLite::SQLite3)
# Sockets: ws2_32 on Windows, nothing extra on Linux # Sockets: ws2_32 on Windows, nothing extra on Linux
if(WIN32) if(WIN32)
target_link_libraries(registry_dashboard PRIVATE ws2_32) target_link_libraries(registry_dashboard PRIVATE ws2_32)
# GUI app: sin ventana de consola al lanzar (subsystem:windows / -mwindows)
set_target_properties(registry_dashboard PROPERTIES WIN32_EXECUTABLE TRUE)
endif() endif()