In this tutorial, we will simply create a new project
Navigate to your QI_WORK_TREE and type:
$ qibuild create foo
Remember, for this to work on windows, you should have:
This will create a new project in QI_WORK_TREE/foo.
Let’s have a look at what has been generated:
foo
|__ CMakeLists.txt
|__ main.cpp
|__ qibuild.cmake
|__ qibuild.manifest
If you already have source code somewhere, all you have to do is to:
[project foo]
You cand do this by running
$ qibuild convert
Note
‘qibuild convert’ will check that your root CMakeLists is correct, please read the messages carefully
In any case, the root CMakeLists should look like:
cmake_minimum_required(VERSION 2.8)
project(my_project)
include("qibuild.cmake")
The ‘project()’ call is mandatory for qibuild to work when using Visual Studio, the include(‘qibuild.cmake’) call must be right after ‘project()’, otherwize you can have trouble when cross-compiling.