diff --git a/CMakeLists.txt b/CMakeLists.txt index ca19057..780fbad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,3 +38,13 @@ endif() target_compile_definitions(${PROJECT_NAME} PUBLIC QAPPLICATION_CLASS=${QAPPLICATION_CLASS}) target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_compile_definitions(${PROJECT_NAME} PRIVATE + QT_NO_CAST_TO_ASCII + QT_NO_CAST_FROM_ASCII + QT_NO_URL_CAST_FROM_STRING + QT_NO_CAST_FROM_BYTEARRAY + QT_USE_QSTRINGBUILDER + QT_NO_NARROWING_CONVERSIONS_IN_CONNECT + QT_NO_KEYWORDS + QT_NO_FOREACH +)