CMakeLists.txt 626 B

123456789101112131415
  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 $<TARGET_FILE_DIR:${TARGET}>)
  11. set(CLIENT_EXEC_PATH ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} PARENT_SCOPE)