CMakeLists.txt 636 B

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