CMakeLists.txt 563 B

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