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:
parent
c988ce28e9
commit
614af6e860
@ -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()
|
||||
|
18
tr.cmake
18
tr.cmake
@ -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)
|
Loading…
x
Reference in New Issue
Block a user