Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
854abdf5
Commit
854abdf5
authored
Apr 12, 2020
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cmake option SPDLOG_BUILD_ALL
parent
d0fc8a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+5
-3
tests/CMakeLists.txt
tests/CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
854abdf5
...
...
@@ -59,6 +59,8 @@ if (NOT DEFINED SPDLOG_MASTER_PROJECT)
endif
()
endif
()
option
(
SPDLOG_BUILD_ALL
"Build all artifacts"
OFF
)
# build shared option
option
(
SPDLOG_BUILD_SHARED
"Build shared library"
OFF
)
...
...
@@ -255,7 +257,7 @@ endif()
#---------------------------------------------------------------------------------------
# Build binaries
#---------------------------------------------------------------------------------------
if
(
SPDLOG_BUILD_EXAMPLE OR SPDLOG_BUILD_EXAMPLE_HO
)
if
(
SPDLOG_BUILD_EXAMPLE OR SPDLOG_BUILD_EXAMPLE_HO
OR SPDLOG_BUILD_ALL
)
message
(
STATUS
"Generating example(s)"
)
add_subdirectory
(
example
)
spdlog_enable_warnings
(
example
)
...
...
@@ -264,13 +266,13 @@ if(SPDLOG_BUILD_EXAMPLE OR SPDLOG_BUILD_EXAMPLE_HO)
endif
()
endif
()
if
(
SPDLOG_BUILD_TESTS OR SPDLOG_BUILD_TESTS_HO
)
if
(
SPDLOG_BUILD_TESTS OR SPDLOG_BUILD_TESTS_HO
OR SPDLOG_BUILD_ALL
)
message
(
STATUS
"Generating tests"
)
enable_testing
()
add_subdirectory
(
tests
)
endif
()
if
(
SPDLOG_BUILD_BENCH
)
if
(
SPDLOG_BUILD_BENCH
OR SPDLOG_BUILD_ALL
)
message
(
STATUS
"Generating benchmarks"
)
add_subdirectory
(
bench
)
endif
()
...
...
tests/CMakeLists.txt
View file @
854abdf5
...
...
@@ -60,11 +60,11 @@ function(spdlog_prepare_test test_target spdlog_lib)
endfunction
()
# The compiled library tests
if
(
SPDLOG_BUILD_TESTS
)
if
(
SPDLOG_BUILD_TESTS
OR SPDLOG_BUILD_ALL
)
spdlog_prepare_test
(
spdlog-utests spdlog::spdlog
)
endif
()
# The header-only library version tests
if
(
SPDLOG_BUILD_TESTS_HO
)
if
(
SPDLOG_BUILD_TESTS_HO
OR SPDLOG_BUILD_ALL
)
spdlog_prepare_test
(
spdlog-utests-ho spdlog::spdlog_header_only
)
endif
()
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