CMakeLists.txt 535 B

12345678910111213141516171819
  1. set(TARGET qtprotobuf_test_multifile)
  2. include(${QT_PROTOBUF_CMAKE_DIR}/QtProtobufTest.cmake)
  3. file(GLOB SOURCES
  4. simpletest.cpp)
  5. file(GLOB PROTO_FILES ABSOLUTE ${CMAKE_CURRENT_SOURCE_DIR}/../test_protobuf/proto/*.proto)
  6. add_test_target(TARGET ${TARGET}
  7. PROTO_FILES ${PROTO_FILES}
  8. EXCLUDE_HEADERS qtprotobufnamespace/tests/nested/nestedsimpleintmessage.h
  9. SOURCES ${SOURCES}
  10. QML
  11. MULTI)
  12. add_target_windeployqt(TARGET ${TARGET}
  13. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  14. add_test(NAME ${TARGET} COMMAND ${TARGET})