add_executable(${TESTNAME} ${SRC})
target_link_libraries(${TESTNAME} QMetaOrm ${EXTRA_LIBS})
target_compile_features(${TESTNAME} PRIVATE ${NEEDED_FEATURES})
target_include_directories(${TESTNAME} PRIVATE
                           ${EXTRA_INCLUDEPATHS}
                           ${CMAKE_CURRENT_BINARY_DIR}
                           ${CMAKE_CURRENT_SOURCE_DIR}/../../include)

add_test(${TESTNAME} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TESTNAME})