Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
c401f21b
Verified
Commit
c401f21b
authored
5 years ago
by
Marcus Asteborg
Committed by
Jean-Marc Valin
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake - Add option for testing to improve cli
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
927de845
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-0
7 additions, 0 deletions
CMakeLists.txt
with
7 additions
and
0 deletions
CMakeLists.txt
+
7
−
0
View file @
c401f21b
...
...
@@ -24,6 +24,7 @@ option(OPUS_USE_ALLOCA "Use alloca for stack arrays (on non-C99 compilers)" OFF)
option
(
OPUS_CUSTOM_MODES
"Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames"
OFF
)
option
(
OPUS_BUILD_PROGRAMS
"Build programs"
OFF
)
option
(
OPUS_BUILD_TESTING
"Build tests"
OFF
)
option
(
OPUS_FIXED_POINT
"Compile as fixed-point (for machines without a fast enough FPU)"
OFF
)
option
(
OPUS_ENABLE_FLOAT_API
...
...
@@ -45,6 +46,11 @@ if(OPUS_BUILD_SHARED_LIBRARY OR BUILD_SHARED_LIBS)
set
(
OPUS_BUILD_SHARED_LIBRARY ON
)
endif
()
if
(
OPUS_BUILD_TESTING OR BUILD_TESTING
)
set
(
OPUS_BUILD_TESTING ON
)
set
(
BUILD_TESTING ON
)
endif
()
if
(
OPUS_STACK_PROTECTOR
)
if
(
NOT MSVC
)
# GC on by default on MSVC
check_and_set_flag
(
STACK_PROTECTION_STRONG -fstack-protector-strong
)
...
...
@@ -131,6 +137,7 @@ add_feature_info(USE_ALLOCA OPUS_USE_ALLOCA
"Use alloca for stack arrays (on non-C99 compilers)"
)
add_feature_info
(
CUSTOM_MODES OPUS_CUSTOM_MODES
"Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames"
)
add_feature_info
(
BUILD_TESTING OPUS_BUILD_TESTING
"Build test programs"
)
add_feature_info
(
BUILD_PROGRAMS OPUS_BUILD_PROGRAMS
"Build programs"
)
add_feature_info
(
FIXED_POINT OPUS_FIXED_POINT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment