qt.cmake 414 B

12345678910111213141516171819
  1. # Build Qt
  2. SET(QT_PREFIX qt6)
  3. SET(QT_URL https://download.qt.io/official_releases/qt/6.1/6.1.0/single/qt-everywhere-src-6.1.0.zip)
  4. # Add Qt
  5. FETCHCONTENT_DECLARE(
  6. ${QT_PREFIX}
  7. PREFIX ${QT_PREFIX}
  8. URL ${QT_URL}
  9. )
  10. FETCHCONTENT_GETPROPERTIES(${QT_PREFIX})
  11. IF(NOT ${QT_PREFIX}_POPULATED)
  12. FETCHCONTENT_POPULATE(${QT_PREFIX})
  13. ADD_SUBDIRECTORY(${${QT_PREFIX}_SOURCE_DIR} ${${QT_PREFIX}_BINARY_DIR})
  14. ENDIF()