CMakeLists.txt 639 B

12345678910111213141516171819202122232425
  1. set(TARGET qtprotobuf_test)
  2. qt_protobuf_internal_find_dependencies()
  3. file(GLOB SOURCES
  4. simpletest.cpp
  5. serializationtest.cpp
  6. deserializationtest.cpp
  7. serializationcomplexmessagemap.cpp
  8. converterstest.cpp
  9. jsonserializationtest.cpp
  10. jsondeserializationtest.cpp
  11. duplicatedmetatypestest.cpp
  12. nestedtest.cpp)
  13. if(NOT WIN32)
  14. list(APPEND SOURCES internalstest.cpp)
  15. endif()
  16. qt_protobuf_internal_add_test(TARGET ${TARGET}
  17. SOURCES ${SOURCES}
  18. QML FIELDENUM)
  19. qt_protobuf_internal_add_target_windeployqt(TARGET ${TARGET}
  20. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  21. add_test(NAME ${TARGET} COMMAND ${TARGET})