aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index db5ad6c..50073cf 100644
--- a/meson.build
+++ b/meson.build
@@ -16,18 +16,20 @@ subdir('include')
subdir('src')
if ((not get_option('static')) and (not get_option('shared')))
- library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
+ librin = library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif
if get_option('static')
- static_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
+ librin = static_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif
if get_option('shared')
- shared_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
+ librin = shared_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif
if get_option('tests')
subdir('test')
+ test_e = executable('test executable', test_sources, include_directories : inc, link_with : librin)
+ test('librin test', test_e)
endif