CMakeLists.txt 692 B

12345678910111213141516
  1. set(TARGET simplechat)
  2. include(${QT_PROTOBUF_CMAKE_DIR}/QtProtobufInternalHelpers.cmake)
  3. qt_protobuf_internal_find_dependencies()
  4. qt_protobuf_internal_add_example_target(TARGET ${TARGET}
  5. PROTO_FILES "${CMAKE_CURRENT_SOURCE_DIR}/proto/simplechat.proto"
  6. SOURCES main.cpp
  7. simplechatengine.cpp
  8. RESOURCES resources.qrc
  9. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  10. add_custom_command(TARGET ${TARGET}
  11. COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../addressbookserver/cert.pem $<TARGET_FILE_DIR:${TARGET}>)
  12. set(CLIENT_EXEC_PATH ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} PARENT_SCOPE)