Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
436ce16e
Commit
436ce16e
authored
Nov 04, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated meson tests build
parent
58320e26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
meson.build
meson.build
+1
-1
meson_options.txt
meson_options.txt
+1
-0
meson.build
tests/meson.build
+9
-5
No files found.
meson.build
View file @
436ce16e
...
@@ -147,7 +147,7 @@ endif
...
@@ -147,7 +147,7 @@ endif
# --- Conditionally add subdirs ---
# --- Conditionally add subdirs ---
# -------------------------------------
# -------------------------------------
if get_option('enable_tests')
if get_option('enable_tests')
or get_option('enable_tests-ho')
subdir('tests')
subdir('tests')
endif
endif
...
...
meson_options.txt
View file @
436ce16e
...
@@ -2,6 +2,7 @@ option('external_fmt', type: 'boolean', value: false, description: 'Use ext
...
@@ -2,6 +2,7 @@ option('external_fmt', type: 'boolean', value: false, description: 'Use ext
option('enable_examples', type: 'boolean', value: true, description: 'Build examples')
option('enable_examples', type: 'boolean', value: true, description: 'Build examples')
option('enable_benchmarks', type: 'boolean', value: false, description: 'Build benchmarks')
option('enable_benchmarks', type: 'boolean', value: false, description: 'Build benchmarks')
option('enable_tests', type: 'boolean', value: true, description: 'Build tests')
option('enable_tests', type: 'boolean', value: true, description: 'Build tests')
option('enable_tests_ho', type: 'boolean', value: false, description: 'Build header-only tests')
option('library_type', type: 'combo', choices: ['static', 'shared'], value: 'static', description: 'Library build type')
option('library_type', type: 'combo', choices: ['static', 'shared'], value: 'static', description: 'Library build type')
option('no_exceptions', type: 'boolean', value: false, description: 'Disabled exceptions - abort() instead any error')
option('no_exceptions', type: 'boolean', value: false, description: 'Disabled exceptions - abort() instead any error')
...
...
tests/meson.build
View file @
436ce16e
...
@@ -37,8 +37,12 @@ endif
...
@@ -37,8 +37,12 @@ endif
# --------------------------------------
# --------------------------------------
# --- Build the test executables ---
# --- Build the test executables ---
# --------------------------------------
# --------------------------------------
test_exe = executable('spdlog-utests', test_sources, dependencies: global_test_deps + [spdlog_dep])
if get_option('enable_tests')
test('test_spdlog', test_exe, is_parallel : false)
test_exe = executable('spdlog-utests', test_sources, dependencies: global_test_deps + [spdlog_dep])
test('test_spdlog', test_exe, is_parallel : false)
endif
test_exe = executable('spdlog-utests-ho', test_sources, dependencies: global_test_deps + [spdlog_headeronly_dep])
if get_option('enable_tests_ho')
test('test_spdlog-ho', test_exe, is_parallel : false)
test_exe = executable('spdlog-utests-ho', test_sources, dependencies: global_test_deps + [spdlog_headeronly_dep])
\ No newline at end of file
test('test_spdlog-ho', test_exe, is_parallel : false)
endif
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment