053766d796
Added qt_examples_begin() and qt_examples_end() macros to setup the example list so it can be re-used in other projects. When cross-compiling, we also need to set CMAKE_FIND_ROOT_PATH_MODE_PACKAGE to BOTH in order for find_package() to work correctly. Removed support for building the whole qtbase/examples folder as a standalone project. Building examples is only supported when building the whole of qtbase (qtbase + examples together) or each individual example is built separately against an installed Qt version. Change-Id: I9d26b94b48b95af230b76ab618becb21d2d45581 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
55 lines
908 B
CMake
55 lines
908 B
CMake
# special case begin
|
|
qt_examples_build_begin()
|
|
|
|
# special case end
|
|
|
|
# Generated from examples.pro.
|
|
|
|
add_subdirectory(corelib)
|
|
add_subdirectory(embedded)
|
|
add_subdirectory(qpa)
|
|
|
|
if(TARGET Qt::DBus)
|
|
add_subdirectory(dbus)
|
|
endif()
|
|
|
|
if(TARGET Qt::Network)
|
|
add_subdirectory(network)
|
|
endif()
|
|
|
|
if(TARGET Qt::Test)
|
|
add_subdirectory(qtestlib)
|
|
endif()
|
|
|
|
if(TARGET Qt::Concurrent)
|
|
add_subdirectory(qtconcurrent)
|
|
endif()
|
|
|
|
if(TARGET Qt::Sql)
|
|
add_subdirectory(sql)
|
|
endif()
|
|
|
|
if(TARGET Qt::Widgets)
|
|
add_subdirectory(widgets)
|
|
endif()
|
|
|
|
if(TARGET Qt::Xml)
|
|
add_subdirectory(xml)
|
|
endif()
|
|
|
|
if(TARGET Qt::Gui)
|
|
add_subdirectory(gui)
|
|
|
|
if(QT_FEATURE_opengl)
|
|
# add_subdirectory(opengl) # special case: removed
|
|
endif()
|
|
|
|
if(QT_FEATURE_vulkan)
|
|
# add_subdirectory(vulkan) # special case: removed
|
|
endif()
|
|
endif()
|
|
|
|
# special case begin
|
|
qt_examples_build_end()
|
|
# special case end
|