~dobey/unity-api/add-simple-logger

« back to all changes in this revision

Viewing changes to test/headers/CMakeLists.txt

  • Committer: Michał Sawicz
  • Date: 2013-05-13 11:39:49 UTC
  • mto: (32.5.5 add-notifications)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: michal.sawicz@canonical.com-20130513113949-2wxj3s8o6dzsrsfa
bring changes from lp:unity/phablet in bulk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# Copyright (C) 2013 Canonical Ltd
3
 
#
4
 
# This program is free software: you can redistribute it and/or modify
5
 
# it under the terms of the GNU General Public License version 3 as
6
 
# published by the Free Software Foundation.
7
 
#
8
 
# This program is distributed in the hope that it will be useful,
9
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
# GNU General Public License for more details.
12
 
#
13
 
# You should have received a copy of the GNU General Public License
14
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
#
16
 
# Authored by: Michi Henning <michi.henning@canonical.com>
17
 
#
18
 
 
19
 
#
20
2
# Test that all header files compile stand-alone and that no public header includes an internal one.
21
3
#
22
4
 
24
6
 
25
7
set(subdirs
26
8
    unity
 
9
    unity/api
27
10
    unity/scopes
28
11
    unity/util
29
12
)
37
20
 
38
21
    # Test that each public header compiles stand-alone.
39
22
    add_test(stand-alone-${location}-headers
40
 
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py -v
 
23
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py
41
24
            ${public_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${public_inc_dir} ${CMAKE_CXX_FLAGS}")
42
25
 
43
26
    # Test that each internal header compiles stand-alone.
44
27
    add_test(stand-alone-${location}-internal-headers
45
 
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py -v
 
28
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py
46
29
            ${internal_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${internal_inc_dir} ${CMAKE_CXX_FLAGS}")
47
30
 
48
31
    # Test that no public header includes an internal header