feat(app): specific WHOA_APP_DEBUG macro passed to resource file

This commit is contained in:
superp00t 2024-09-07 19:44:07 -04:00
parent 0080934ed9
commit c9829ca5e1
2 changed files with 14 additions and 7 deletions

View File

@ -3,6 +3,13 @@ if(WHOA_SYSTEM_WIN)
add_executable(Whoa WIN32 ${PRIVATE_SOURCES})
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(Whoa
PRIVATE
-DWHOA_APP_DEBUG
)
endif ()
target_link_libraries(Whoa
PRIVATE
client

View File

@ -1,6 +1,6 @@
#pragma code_page(65001) // UTF-8
#ifdef _DEBUG
#ifdef WHOA_APP_DEBUG
BlizzardIcon.ico ICON DISCARDABLE "debug/Whoa.ico"
#else
BlizzardIcon.ico ICON DISCARDABLE "release/Whoa.ico"