Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Opus
Commits
d00d866e
Verified
Commit
d00d866e
authored
Apr 22, 2020
by
Marcus Asteborg
Committed by
Mark Harris
Jun 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake - add include guards to cmake files
Signed-off-by:
Mark Harris
<
mark.hsj@gmail.com
>
parent
48055ccc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
cmake/OpusBuildtype.cmake
cmake/OpusBuildtype.cmake
+4
-0
cmake/OpusConfig.cmake
cmake/OpusConfig.cmake
+5
-0
cmake/OpusFunctions.cmake
cmake/OpusFunctions.cmake
+4
-5
cmake/OpusSources.cmake
cmake/OpusSources.cmake
+5
-0
No files found.
cmake/OpusBuildtype.cmake
View file @
d00d866e
# Set a default build type if none was specified
if
(
__opus_buildtype
)
return
()
endif
()
set
(
__opus_buildtype INCLUDED
)
if
(
NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES
)
if
(
CMAKE_C_FLAGS
)
...
...
cmake/OpusConfig.cmake
View file @
d00d866e
if
(
__opus_config
)
return
()
endif
()
set
(
__opus_config INCLUDED
)
include
(
OpusFunctions
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/cmake/config.h.cmake.in config.h @ONLY
)
...
...
cmake/OpusFunctions.cmake
View file @
d00d866e
#[[Cmake helper function to parse source files from make files
this is to avoid breaking existing make and auto make support
but still have the option to use CMake with only lists at one place]]
cmake_minimum_required
(
VERSION 3.1
)
if
(
__opus_functions
)
return
()
endif
()
set
(
__opus_functions INCLUDED
)
function
(
get_library_version OPUS_LIBRARY_VERSION OPUS_LIBRARY_VERSION_MAJOR
)
file
(
STRINGS configure.ac opus_lt_current_string
...
...
cmake/OpusSources.cmake
View file @
d00d866e
if
(
__opus_sources
)
return
()
endif
()
set
(
__opus_sources INCLUDED
)
include
(
OpusFunctions
)
get_opus_sources
(
SILK_HEAD silk_headers.mk silk_headers
)
...
...
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