Add include guards

This commit is contained in:
Axel Isouard 2017-03-17 18:52:54 +01:00
parent a750ea484d
commit 7ad84637f4
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29
10 changed files with 52 additions and 2 deletions

View file

@ -1,3 +1,8 @@
if(FIND_DEPOT_TOOLS_INCLUDED)
return()
endif(FIND_DEPOT_TOOLS_INCLUDED)
set(FIND_DEPOT_TOOLS_INCLUDED true)
find_program(GCLIENT_EXECUTABLE
NAMES gclient gclient.bat
DOC "Path to gclient executable"

View file

@ -1,3 +1,8 @@
if(FIND_LIBRARIES_INCLUDED)
return()
endif(FIND_LIBRARIES_INCLUDED)
set(FIND_LIBRARIES_INCLUDED true)
#
# Find required packages
list(APPEND LIBWEBRTC_LIBRARIES webrtc)

View file

@ -1,3 +1,8 @@
if(GCLIENT_CONFIG_INCLUDED)
return()
endif(GCLIENT_CONFIG_INCLUDED)
set(GCLIENT_CONFIG_INCLUDED true)
#
# Retrieve WebRTC source code
#

View file

@ -1,3 +1,8 @@
if(INSTALL_INCLUDED)
return()
endif(INSTALL_INCLUDED)
set(INSTALL_INCLUDED true)
#
# Install library
file(GLOB_RECURSE _LIBRARY_FILES

View file

@ -1,3 +1,8 @@
if(LIBWEBRTC_COMMAND_INCLUDED)
return()
endif(LIBWEBRTC_COMMAND_INCLUDED)
set(LIBWEBRTC_COMMAND_INCLUDED true)
include(CMakeParseArguments)
include(Prefix)

View file

@ -1,3 +1,8 @@
if(OPTIONS_INCLUDED)
return()
endif(OPTIONS_INCLUDED)
set(OPTIONS_INCLUDED true)
#
# Options, flags
option(BUILD_TESTS "Build test binaries" OFF)

View file

@ -1,3 +1,8 @@
if(PACKAGE_INCLUDED)
return()
endif(PACKAGE_INCLUDED)
set(PACKAGE_INCLUDED true)
#
# Create package
set(CPACK_PACKAGE_FILE_NAME "libwebrtc-${LIBWEBRTC_VERSION}-${TARGET_OS}-${TARGET_CPU}")

View file

@ -1,3 +1,8 @@
if(PREFIX_INCLUDED)
return()
endif(PREFIX_INCLUDED)
set(PREFIX_INCLUDED true)
#
# Generate environment variables
#

View file

@ -1,3 +1,8 @@
if(TARGET_OS_AND_CPU_INCLUDED)
return()
endif(TARGET_OS_AND_CPU_INCLUDED)
set(TARGET_OS_AND_CPU_INCLUDED true)
include(CheckSymbolExists)
#

View file

@ -1,3 +1,8 @@
if(VERSION_INCLUDED)
return()
endif(VERSION_INCLUDED)
set(VERSION_INCLUDED true)
#
# Set the project's version