diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuildInternals/QtBuildInternalsConfig.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake index 34e40365ca..767a9dc45f 100644 --- a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake +++ b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake @@ -53,3 +53,23 @@ macro(qt_build_repo_end) RUNTIME_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) endmacro() + +macro(qt_build_repo) + qt_build_repo_begin(${ARGN}) + + if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src") + add_subdirectory(src) + endif() + + if (BUILD_TESTING) + find_package(Qt5 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Test Xml) + add_subdirectory(tests) + endif() + + if (BUILD_EXAMPLES) + # TODO: Implement me + #add_subdirectory(examples) + endif() + + qt_build_repo_end() +endmacro() |