Fix deprecated qt functions in CMake

This commit is contained in:
Evgenii Zheltonozhskii 2018-06-05 18:58:33 +03:00 committed by Berkus Decker
parent 1015e088e3
commit 80071b61d5
5 changed files with 2 additions and 5 deletions

View File

@ -5,4 +5,4 @@ add_library(codegen_common STATIC
cpp_file.cpp
logging.cpp
)
qt5_use_modules(codegen_common Core)
target_link_libraries(codegen_common Qt5::Core)

View File

@ -6,4 +6,4 @@ add_executable(codegen_emoji
replaces.cpp
)
target_link_libraries(codegen_emoji codegen_common Qt5::Core Qt5::Gui)
qt5_use_modules(codegen_emoji Core)

View File

@ -6,4 +6,3 @@ add_executable(codegen_lang
processor.cpp
)
target_link_libraries(codegen_lang codegen_common Qt5::Core Qt5::Gui)
qt5_use_modules(codegen_lang Core Gui)

View File

@ -6,4 +6,3 @@ add_executable(codegen_numbers
processor.cpp
)
target_link_libraries(codegen_numbers codegen_common Qt5::Core)
qt5_use_modules(codegen_numbers Core)

View File

@ -8,4 +8,3 @@ add_executable(codegen_style
structure_types.cpp
)
target_link_libraries(codegen_style codegen_common Qt5::Core Qt5::Gui)
qt5_use_modules(codegen_style Core Gui)