# Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) add_executable(poi # main main.cpp singleapplication.cpp singleapplication.h browser.cpp browser.h ../data/resources.qrc # main window mainwindow/mainwindow.cpp mainwindow/mainwindow.h mainwindow/subwindow.cpp mainwindow/subwindow.h mainwindow/widgets/dockwidget.cpp mainwindow/widgets/dockwidget.h mainwindow/widgets/navigationbar.cpp mainwindow/widgets/navigationbar.h mainwindow/widgets/searchform.cpp mainwindow/widgets/searchform.h mainwindow/widgets/searchform.ui mainwindow/widgets/tabwidget.cpp mainwindow/widgets/tabwidget.h # webengine webengine/urlinterceptor.cpp webengine/urlinterceptor.h webengine/webpage.cpp webengine/webpage.h webengine/webview.cpp webengine/webview.h webengine/widgets/pagetoolsmenu.cpp webengine/widgets/pagetoolsmenu.h webengine/widgets/pagemenu.cpp webengine/widgets/pagemenu.h # plugin interfaces #../plugins/interfaces.h ) target_include_directories(poi PRIVATE ${Boost_INCLUDE_DIRS} PRIVATE ../lib ../plugins PRIVATE ../lib/configuration PRIVATE ../lib/web) target_link_libraries(poi Qt5::Core Qt5::Widgets Qt5::Concurrent Qt5::WebEngineWidgets ${Boost_LIBRARIES} about addressbar configuration bookmarks downloads web) target_compile_definitions(poi PRIVATE QTBUG_65223_WORKAROUND PRIVATE QTBUG_68224_WORKAROUND ) install(TARGETS poi RUNTIME DESTINATION bin CONFIGURATIONS Release)