CMakeLists.txt 500 B

123456789101112131415161718
  1. set(TARGET qtprotobuf_test_multifile)
  2. include(${QTPROTOBUF_CMAKE_DIR}/QtProtobufCommon.cmake)
  3. file(GLOB SOURCES
  4. simpletest.cpp)
  5. file(GLOB PROTO_FILES ABSOLUTE ${CMAKE_CURRENT_SOURCE_DIR}/../test_protobuf/proto/*.proto)
  6. add_test_target(TARGET ${TARGET}
  7. PROTO_FILES ${PROTO_FILES}
  8. EXCLUDE_HEADERS nestedsimpleintmessage.h
  9. SOURCES ${SOURCES}
  10. MULTI TRUE)
  11. add_target_windeployqt(TARGET ${TARGET}
  12. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  13. add_test(NAME ${TARGET} COMMAND ${TARGET})