diff options
Diffstat (limited to 'tests/auto/httpserver/httpserver.cmake')
-rw-r--r-- | tests/auto/httpserver/httpserver.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/httpserver/httpserver.cmake b/tests/auto/httpserver/httpserver.cmake index d67648f9c..84b350c0e 100644 --- a/tests/auto/httpserver/httpserver.cmake +++ b/tests/auto/httpserver/httpserver.cmake @@ -1,9 +1,5 @@ if (NOT TARGET Test::HttpServer) - if(NOT QT_SUPERBUILD AND NOT QT_CONFIGURE_RUNNING) - set(CMAKE_AUTOMOC ON) - endif() - add_library(httpserver STATIC ${CMAKE_CURRENT_LIST_DIR}/httpreqrep.cpp ${CMAKE_CURRENT_LIST_DIR}/httpreqrep.h @@ -13,6 +9,9 @@ if (NOT TARGET Test::HttpServer) ${CMAKE_CURRENT_LIST_DIR}/proxy_server.cpp ) + # moc binary might not exist in case of top level build + qt_autogen_tools(httpserver ENABLE_AUTOGEN_TOOLS "moc") + if(QT_FEATURE_ssl) target_sources(httpserver INTERFACE ${CMAKE_CURRENT_LIST_DIR}/httpsserver.h) endif() |