1 // (c) Copyright Juergen Hunold 2015 2 // Use, modification and distribution is subject to the Boost Software 3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #define BOOST_TEST_MODULE Qt3DCore 7 #include <Qt3DCore> 8 9 #include <boost/test/unit_test.hpp> 10 BOOST_AUTO_TEST_CASE(defines)11BOOST_AUTO_TEST_CASE (defines) 12 { 13 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_3DCORE_LIB), true); 14 } 15 BOOST_AUTO_TEST_CASE(sample_code)16BOOST_AUTO_TEST_CASE ( sample_code ) 17 { 18 Qt3DCore::QTransform torusTransform; 19 torusTransform.setScale3D(QVector3D(1.5, 1, 0.5)); 20 torusTransform.setRotation(QQuaternion::fromAxisAndAngle(QVector3D(1, 0, 0), 45.0f)); 21 } 22