CMakeでQt5を使う方法がやっとわかったのでメモ。というか対応してたじゃねーかー... とりあえず以下が参考記事 http://www.kdab.com/using-cmake-with-qt-5/ http://qt.developpez.com/doc/5.0-snapshot/cmake-manual/ CMakeのバージョンは2.8.10.2を用いる。2.8.8 or laterなら同じことができると思う。それ以前だとこの記事のやり方ではダメなので上のURLを参考にして貰いたい。 まず、以下のような簡単なmain.cppをビルドする #include<QApplication> #include<QLabel> int main(int argc,char** argv){ QApplication app(argc,argv); QLabel* l = new QLabel(
![CMakeでQt5を使う - opamp_sando's blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/9aa7eddf8882c4cd247ab9c21c709d3a46380bc2/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fo%2Fopamp_sando%2F20130127%2F20130127123515.png)