4
0
mirror of https://github.com/QuasarApp/CMake.git synced 2025-05-11 17:09:34 +00:00

remove includeQt method

This commit is contained in:
Andrei Yankovich 2021-04-01 16:35:35 +03:00
parent c988ce28e9
commit 614af6e860
2 changed files with 0 additions and 44 deletions

@ -45,29 +45,3 @@ function(prepareQM name sourceDir ts_files)
endfunction()
# This function search package for the qt6 or qt5 with requir modules and check if a sought package is already included.
# Arguments :
# ModulesList - This is mist of requir modules of the qt.
function(includeQt ModulesList)
foreach(module ${ModulesList})
if (NOT Qt${QT_VERSION_MAJOR}_${module}_FOUND)
find_package(QT NAMES Qt6 Qt5 COMPONENTS ${module} REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS ${module} REQUIRED)
set(Qt${QT_VERSION_MAJOR}_${module}_FOUND ON)
message(STATUS "The qt ${module} is found")
elseif()
message(STATUS "The qt ${module} is alredy found")
endif()
endforeach()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
endfunction()

@ -1,18 +0,0 @@
#
# Copyright (C) 2018-2021 QuasarApp.
# Distributed under the MIT software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
# This module is wraper of the QTFunctions.cmake.
# The tr module contains only prepareQM function.
if(DEFINED PROJECT_TR_SUPPORT)
return()
else()
set(PROJECT_TR_SUPPORT 1)
endif()
include(QtUtils.cmake)