Implemented fileserver example.

This commit is contained in:
Nathan Osman
2015-07-02 19:48:22 -07:00
parent 7ee24f5ac4
commit 2c90fcf0fe
5 changed files with 326 additions and 4 deletions

View File

@@ -1,8 +1,17 @@
set(SRC
main.cpp
set(INCLUDE
mainwindow.h
)
add_executable(fileserver WIN32 ${SRC})
set(SRC
main.cpp
mainwindow.cpp
)
qt5_wrap_ui(UI
mainwindow.ui
)
add_executable(fileserver WIN32 ${SRC} ${UI})
qt5_use_modules(fileserver Widgets)
target_link_libraries(fileserver qhttpengine)
@@ -14,6 +23,6 @@ install(TARGETS fileserver
RUNTIME DESTINATION ${EXAMPLES_INSTALL_DIR}/fileserver
)
install(FILES ${SRC}
install(FILES ${INCLUDE} ${SRC} ${UI}
DESTINATION ${EXAMPLES_INSTALL_DIR}/fileserver
)