Skip to content

A sample project to produce a library, and a test for quickstart using meson build system with C++ application

License

Notifications You must be signed in to change notification settings

haxpor/meson_quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meson_quickstart

A sample quickstart C++ project that builds a library, and a testing executable binary.

Notice

  • Use set_variable() to exposes a variable to be consumed by another sub-directory via get_variable().
  • Use declare_dependency() to avoid repetitive on how to compile the library sharing from lib/ to test/.
  • Use test() to define the test name

Command notices

  • meson setup <dir> - to setup the build directory. It is the same as meson <dir> (without any sub-command, it defaults to setup).
  • meson compile - while at build directory, to build the project. This is equivalent to ninja.
  • meson compile --clean - while at build directory, to clean the artifacts. This is equivalent to ninja clean.
  • meson compile -C <build-dir> - if not at build directory, we can specify the build directory as well. Same as ninja -C <build-dir>.
  • meson test - execute test name as defined from within meson script

License

Wasin Thonkaew, MIT

About

A sample project to produce a library, and a test for quickstart using meson build system with C++ application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published