CMakeLists.txt 524 B

123456789101112131415161718192021
  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. add_test_target(TARGET ${TARGET}
  13. SOURCES ${SOURCES}
  14. QML)
  15. add_target_windeployqt(TARGET ${TARGET}
  16. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  17. add_test(NAME ${TARGET} COMMAND ${TARGET})