Skip to content

Commit

Permalink
qt5: Add UNICODE macros
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Nov 30, 2023
1 parent 087ab52 commit b8c2918
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 b8c2918

Please sign in to comment.