1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) add_library(web webprofile.cpp webprofile.h ) #target_include_directories(web # PRIVATE ${Boost_INCLUDE_DIRS} # PRIVATE .. #) target_link_libraries(web Qt5::WebEngineWidgets)