1 2 3 4 5 6 7 8 9 10
execute_process( COMMAND ${CMAKE_SOURCE_DIR}/FindQt.sh -v ${qt_version} Qt5CoreConfig.cmake OUTPUT_VARIABLE config_file ) if(config_file STREQUAL "") message(FATAL_ERROR "Qt5 Core module not found") endif(config_file STREQUAL "") include(${config_file})