CMakeLists.txt 691 B

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