build: link libs for tray icon, change executable type

This commit is contained in:
2026-06-20 06:53:15 -03:00
parent 385cfe147d
commit 26a4406c88
+2 -2
View File
@@ -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)