CMakeLists.txt 618 B

12345678910111213141516171819202122232425
  1. set(TARGET qtprotobuf_test)
  2. include(${QT_PROTOBUF_CMAKE_DIR}/QtProtobufTest.cmake)
  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. add_test_target(TARGET ${TARGET}
  17. SOURCES ${SOURCES}
  18. QML FIELDENUM)
  19. add_target_windeployqt(TARGET ${TARGET}
  20. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  21. add_test(NAME ${TARGET} COMMAND ${TARGET})