From 640795a771293974987dc557a6ab181a77c08aa7 Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 4 Aug 2020 20:50:33 +0200 Subject: [PATCH] update README --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 11cf698..4a6b529 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,34 @@ add_subdirectory(external/cglm/) # or you can use find_package to configure cglm ``` +### Meson (All platforms) + +```bash +$ meson build # [Optional] --default-library=static +$ cd build +$ ninja +$ sudo ninja install # [Optional] +``` + +##### Meson options with Defaults: + +```meson +c_std=c11 +buildtype=release +default_library=shared +``` +#### Use with your Meson project +* Example: +```meson +# Clone cglm or create a cglm.wrap under /subprojects +project('name', 'c') + +cglm_dep = dependency('cglm', fallback : 'cglm', 'cglm_dep') + +executable('exe', 'src/main.c', dependencies : cglm_dep) +``` + + ### Unix (Autotools) ```bash