diff --git a/CMakeLists.txt b/CMakeLists.txt index 8125f273a..ddcd1051b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,9 +203,18 @@ endif() include_directories(SYSTEM ${QT_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}) +if(NOT (${CMAKE_VERSION} VERSION_LESS 2.8.3)) + set(PRINT_SUMMARY ON) + include(FeatureSummary) +endif() + add_subdirectory(src) add_subdirectory(share) add_subdirectory(utils) if(WITH_TESTS) add_subdirectory(tests) endif(WITH_TESTS) + +if(PRINT_SUMMARY) + feature_summary(WHAT ALL) +endif() diff --git a/src/autotype/CMakeLists.txt b/src/autotype/CMakeLists.txt index 0e4a69ebc..0bf5fc252 100644 --- a/src/autotype/CMakeLists.txt +++ b/src/autotype/CMakeLists.txt @@ -1,5 +1,8 @@ if(Q_WS_X11) find_package(X11) + if(PRINT_SUMMARY) + add_feature_info(libXtest X11_XTest_FOUND "The X11 XTEST Protocol library is required for auto-type") + endif() if(X11_FOUND AND X11_XTest_FOUND) add_subdirectory(x11)