diff --git a/CMakeLists.txt b/CMakeLists.txt index 13066b8ea35ac8d226bb4ac40a2f65d9d878c9c6..e4b56597ceae1f94339ea240687bdccab937e668 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ endif(NOT CMAKE_CXX_STANDARD) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Find Qt -find_package(Qt5 COMPONENTS Core Gui Widgets DBus LinguistTools CONFIG REQUIRED) +find_package(Qt5 COMPONENTS Core Gui Widgets DBus Network LinguistTools CONFIG REQUIRED) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) # Instruct CMake to run qrc automatically when needed. @@ -93,7 +93,7 @@ target_include_directories(fp311online PUBLIC ${CMAKE_CURRENT_BINARY_DIR} src/) add_dependencies(fp311online libfp311online_versioning) -target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::Hist ROOT::HistPainter ROOT::Minuit2 ROOT::RooFit -lpthread) +target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network ROOT::Hist ROOT::HistPainter ROOT::Minuit2 ROOT::RooFit -lpthread) set_property(TARGET fp311online PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET fp311online PROPERTY CXX_VISIBILITY_PRESET hidden)