CMakeLists.txt 643 B

1234567891011121314151617
  1. set(TARGET addressbook)
  2. qt_protobuf_internal_find_dependencies()
  3. qt_protobuf_internal_add_example(TARGET ${TARGET}
  4. PROTO_FILES "${CMAKE_CURRENT_SOURCE_DIR}/proto/addressbook.proto"
  5. SOURCES main.cpp
  6. addressbookengine.cpp
  7. RESOURCES resources.qrc
  8. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qml)
  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)