CMakeLists.txt 459 B

1234567891011121314151617
  1. set(TARGET qtprotobuf_extranamespace_test)
  2. qt_protobuf_internal_find_dependencies()
  3. file(GLOB SOURCES
  4. extra_namespace_test.cpp
  5. serializationtest.cpp
  6. deserializationtest.cpp)
  7. qt_protobuf_internal_add_test(TARGET ${TARGET}
  8. SOURCES ${SOURCES}
  9. QML FIELDENUM EXTRA_NAMESPACE "MyTestNamespace")
  10. qt_protobuf_internal_add_target_windeployqt(TARGET ${TARGET}
  11. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  12. add_test(NAME ${TARGET} COMMAND ${TARGET})