CMakeLists.txt 476 B

12345678910111213141516171819
  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. add_target_windeployqt(TARGET ${TARGET}
  13. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  14. add_test(NAME ${TARGET} COMMAND ${TARGET})