CMakeLists.txt 511 B

1234567891011121314151617181920
  1. set(TARGET qtprotobuf_test_multifile)
  2. qt_protobuf_internal_find_dependencies()
  3. file(GLOB SOURCES
  4. simpletest.cpp
  5. nestedtest.cpp)
  6. file(GLOB PROTO_FILES ABSOLUTE ${CMAKE_CURRENT_SOURCE_DIR}/../test_protobuf/proto/*.proto)
  7. qt_protobuf_internal_add_test(TARGET ${TARGET}
  8. PROTO_FILES ${PROTO_FILES}
  9. SOURCES ${SOURCES}
  10. QML
  11. MULTI
  12. FIELDENUM)
  13. qt_protobuf_internal_add_target_windeployqt(TARGET ${TARGET}
  14. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  15. add_test(NAME ${TARGET} COMMAND ${TARGET})