summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt5ModuleLocation.cmake.in
blob: cf70f6bc0e63b6554f21e721c32e996ff39d1136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
!!IF !isEmpty(_QMAKE_SUPER_CACHE_)
get_filename_component(_qt5_root_dir \"${CMAKE_CURRENT_LIST_DIR}/../../../..\" ABSOLUTE)

file(GLOB qtmodules ${_qt5_root_dir} "${_qt5_root_dir}/*")
foreach(qtmodule ${qtmodules})
    if(IS_DIRECTORY ${qtmodule})
        list(APPEND _qt5_module_paths "${qtmodule}" "${qtmodule}/lib/cmake")
    endif()
endforeach()
!!ELSE
set(_qt5_root_dir ${_qt5_install_prefix})
set(_qt5_module_paths ${_qt5_install_prefix})
!!ENDIF

set(_qt5_module_location_template ${_qt5_root_dir})