From 26a4406c884344c8ffa24a8826f81360260d4a46 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 20 Jun 2026 06:53:15 -0300 Subject: [PATCH] build: link libs for tray icon, change executable type --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 037cf25..d88272b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,8 +138,8 @@ endif() # ------------------------------ file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h") -add_executable(hex-unlocked ${UNLOCKER_SOURCES}) -target_link_libraries(hex-unlocked PRIVATE hex-warned seallib glaze::glaze tinymitm wininet ixwebsocket crypt32) +add_executable(hex-unlocked WIN32 ${UNLOCKER_SOURCES}) +target_link_libraries(hex-unlocked PRIVATE hex-warned seallib glaze::glaze tinymitm wininet ixwebsocket crypt32 user32 shell32) # rnd exe name string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME)