CMakeLists.txt 490 B

1234567891011121314151617181920
  1. set(TARGET qtprotobuf_test_multifile)
  2. include(${QT_PROTOBUF_CMAKE_DIR}/QtProtobufTest.cmake)
  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. add_test_target(TARGET ${TARGET}
  8. PROTO_FILES ${PROTO_FILES}
  9. SOURCES ${SOURCES}
  10. QML
  11. MULTI
  12. FIELDENUM)
  13. add_target_windeployqt(TARGET ${TARGET}
  14. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  15. add_test(NAME ${TARGET} COMMAND ${TARGET})