~ci-train-bot/cmake-extras/cmake-extras-ubuntu-zesty-2465

« back to all changes in this revision

Viewing changes to src/formatcode/formatcode_test.cmake.in

  • Committer: CI Train Bot
  • Author(s): Pete Woods, Charles Kerr
  • Date: 2016-05-13 15:39:55 UTC
  • mfrom: (39.2.14 formatcode)
  • Revision ID: ci-train-bot@canonical.com-20160513153955-92puccitwcqcp4au
Add optional `formatcode' test and rule for comparing code to, and reformatting code to, a style guide standard.
Approved by: Pete Woods, Michi Henning

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#=============================================================================
 
2
# Copyright 2016 Canonical Ltd
 
3
#
 
4
# This file may be licensed under the terms of the
 
5
# GNU Lesser General Public License Version 3 (the ``LGPL''),
 
6
# or (at your option) any later version.
 
7
#
 
8
# Software distributed under the License is distributed
 
9
# on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
 
10
# express or implied. See the LGPL for the specific language
 
11
# governing rights and limitations.
 
12
#
 
13
# You should have received a copy of the LGPL along with this
 
14
# program. If not, go to http://www.gnu.org/licenses/lgpl.html
 
15
# or write to the Free Software Foundation, Inc.,
 
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
#=============================================================================
 
18
 
 
19
set(CMAKE_BINARY_DIR @CMAKE_BINARY_DIR@)
 
20
set(CMAKE_SOURCE_DIR @CMAKE_SOURCE_DIR@)
 
21
 
 
22
set(FC_COMMAND @FC_COMMAND@)
 
23
set(FC_SOURCES @FC_SOURCES@)
 
24
 
 
25
include(@FC_CMAKE_MODULE_DIR@/formatcode_common.cmake)
 
26
 
 
27
formatcode_test_files(
 
28
    "${FC_COMMAND}"
 
29
    "${FC_SOURCES}"
 
30
)
 
31