added REQUIRED flag to Qt5Widgets in CMakeLists.txt

This commit is contained in:
Kjistóf 2016-12-05 16:23:38 +01:00
parent 55df60d51f
commit 3c3acaaaa5

View File

@ -10,9 +10,9 @@ find_package(Threads REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
find_package(Qt5Widgets)
find_package(Qt5Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(SOURCE_FILES gui_chat.cpp chat_window.hpp chat_messages.hpp chat_networking.hpp check_policy.hpp)
add_executable(cpp11NHF2_chat ${SOURCE_FILES})
target_link_libraries(cpp11NHF2_chat Threads::Threads ${Boost_LIBRARIES} Qt5::Widgets)
target_link_libraries(cpp11NHF2_chat Threads::Threads ${Boost_LIBRARIES} Qt5::Widgets)