Warning, /maui/mauikit-documents/src/code/epub/qhttpserver/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(PLUGIN_DIR HttpServer)
0002
0003 set(qhttpserver_SRCS
0004 fileserver.cpp
0005 httpserverplugin.cpp
0006 qhttpconnection.cpp
0007 qhttprequest.cpp
0008 qhttpresponse.cpp
0009 qhttpserver.cpp
0010 http-parser/http_parser.c
0011 http-parser/url_parser.c
0012 )
0013
0014 add_library(qhttpserverplugin MODULE
0015 ${qhttpserver_SRCS}
0016 )
0017 add_definitions(-DQT_NO_DEBUG_OUTPUT)
0018
0019 qt5_use_modules(qhttpserverplugin Gui Qml Network)
0020
0021 # Copy the plugin file to the build dir
0022 set_target_properties(qhttpserverplugin PROPERTIES
0023 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../${PLUGIN_DIR}
0024 )
0025
0026 # Copy the qmldir file to the build dir
0027 add_custom_command(TARGET qhttpserverplugin POST_BUILD
0028 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_CURRENT_BINARY_DIR}/../${PLUGIN_DIR}
0029 )
0030
0031 # Install plugin file
0032 string(REPLACE "//" "/" LIB_DIR ${DATA_DIR}/${PLUGIN_DIR})
0033 install(TARGETS qhttpserverplugin DESTINATION ${LIB_DIR})
0034 install(FILES qmldir DESTINATION ${LIB_DIR})