Abandon FGQCanvas build if QtWebSockets is missing.
Should avoid build pain for people with older Qt5 installs or who don’t have the web-sockets development package available.
This commit is contained in:
parent
eba1f3221f
commit
12ad68f258
1 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|||
|
||||
project(FGQCanvas)
|
||||
|
||||
find_package(Qt5 5.3 REQUIRED COMPONENTS Widgets WebSockets)
|
||||
find_package(Qt5 5.3 COMPONENTS Widgets WebSockets)
|
||||
|
||||
if (NOT Qt5WebSockets_FOUND)
|
||||
message(WARNING "FGQCanvas utility requested, but QtWebSockets not found")
|
||||
message(STATUS "Check you have the development package for Qt5 WebSockets installed")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
temporarywidget.cpp
|
||||
|
|
Loading…
Reference in a new issue