Skip to content

Commit

Permalink
Merge pull request #386 from silicon-heaven/qt5-win32-unicode
Browse files Browse the repository at this point in the history
qt5: Add UNICODE macros
  • Loading branch information
fvacek authored Nov 30, 2023
2 parents 087ab52 + b8c2918 commit 67c8e93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ if(WITH_COREQT)
set(Qt_FOUND ${Qt5_FOUND})
set(QtWidgets_FOUND ${Qt5Widgets_FOUND})

function(qt_add_library)
add_library(${ARGV})
function(qt_add_library target)
add_library(${target} ${ARGN})
if(WIN32)
target_compile_definitions(${target} PRIVATE UNICODE)
target_compile_definitions(${target} PRIVATE _UNICODE)
endif()
endfunction()

function(qt_add_executable)
Expand Down

0 comments on commit 67c8e93

Please sign in to comment.