私はUbuntu-developerリポジトリ(私はUbuntu 13.04の下にあります)からQt5とQt3dをインストールしました。私はCMake(私のバージョンは2.8.10.1です)と非常に単純なアプリケーションをコンパイルしたいと思います。 Qtのhelloworldの作業CMakeLists.txtは以下の通りです:Qt5のQt3dでCMakeを使う?
cmake_minimum_required(VERSION 2.8.8)
project(testproject)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
# Find the QtWidgets library
find_package(Qt5Widgets)
# Tell CMake to create the helloworld executable
add_executable(helloworld helloworld.cpp)
# Use the Widgets module from Qt 5.
qt5_use_modules(helloworld Widgets)
しかし、この例のように、基本的なQt3dプログラムのCMakeLists.txt次のようになります。 https://gitorious.org/wiki-sources/wiki-sources/trees/master/qt3d/glview
'Qt53D'では、プロファイルの接尾辞が必要なようです。例えば、' Qt53D'ではなく 'Qt53DCore'です。 – Smar