diff --git a/CMakeLists.txt b/CMakeLists.txt index d88272b..e13d1e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,9 @@ set(CMAKE_CXX_STANDARD 20) add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) +project(hex-unlocked LANGUAGES CXX) +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + if(MSVC) add_compile_options(/EHsc /utf-8 /Zc:char8_t) if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") @@ -15,11 +18,9 @@ if(MSVC) endif() else() add_compile_options(-m64) + enable_language(RC) endif() -project(hex-unlocked LANGUAGES CXX) -set_property(GLOBAL PROPERTY USE_FOLDERS ON) - # ------------------------------ # options # ------------------------------ @@ -138,7 +139,7 @@ endif() # ------------------------------ file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h") -add_executable(hex-unlocked WIN32 ${UNLOCKER_SOURCES}) +add_executable(hex-unlocked WIN32 ${UNLOCKER_SOURCES} "res/resources.rc") target_link_libraries(hex-unlocked PRIVATE hex-warned seallib glaze::glaze tinymitm wininet ixwebsocket crypt32 user32 shell32) # rnd exe name diff --git a/res/icon.ico b/res/icon.ico new file mode 100644 index 0000000..05feb34 Binary files /dev/null and b/res/icon.ico differ diff --git a/res/resources.rc b/res/resources.rc new file mode 100644 index 0000000..1bc463a --- /dev/null +++ b/res/resources.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "icon.ico"