-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
IndepthTutorial
jpakkane edited this page Sep 8, 2014
·
26 revisions
In this tutorial we set up a project with multiple targets, unit tests and dependencies between targets. Our main product is a shared library called foo that is written in C++11. We are going to ignore the contents of the source files, as they are not really important from a build definition point of view.
The source tree contains three subdirectories src, include and test that contain, respectively, the source code, headers and unit tests of our project.
To start things up, here is the top level meson.build file.
project('c++ foolib', 'cpp')
add_global_arguments('-std=c++11', language : 'cpp')
inc = include_directories('include')
subdir('src')
subdir('test')
First we define the project's name and the programmin languages it uses (in this case only C++).
All documentation is now on the main web site.
This page should be at this address.