~ci-train-bot/unity-api/unity-api-ubuntu-zesty-2272

« back to all changes in this revision

Viewing changes to test/headers/CMakeLists.txt

  • Committer: Bileto Bot
  • Date: 2017-01-19 13:54:08 UTC
  • mfrom: (264.1.1 trunk)
  • Revision ID: ci-train-bot@canonical.com-20170119135408-2ttw0u9ysq1psw3i
unity::util - add GObject shared memory utility classes
and helper methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    unity/util
11
11
)
12
12
 
 
13
set(exclusions
 
14
    "GObjectMemory.h"
 
15
)
 
16
 
13
17
foreach(dir ${subdirs})
14
18
 
15
19
    string(REPLACE "/" "-" location ${dir})
20
24
    # Test that each public header compiles stand-alone.
21
25
    add_test(stand-alone-${location}-headers
22
26
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py
23
 
            ${public_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${public_inc_dir} ${CMAKE_CXX_FLAGS}")
 
27
            ${public_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${public_inc_dir} ${CMAKE_CXX_FLAGS}" "--exclusions" ${exclusions})
24
28
 
25
29
    # Test that each internal header compiles stand-alone.
26
30
    add_test(stand-alone-${location}-internal-headers
27
31
        ${CMAKE_CURRENT_SOURCE_DIR}/compile_headers.py
28
 
            ${internal_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${internal_inc_dir} ${CMAKE_CXX_FLAGS}")
 
32
            ${internal_inc_dir} ${CMAKE_CXX_COMPILER} "-I${root_inc_dir} -I${internal_inc_dir} ${CMAKE_CXX_FLAGS}" "--exclusions" ${exclusions})
29
33
 
30
34
    # Test that no public header includes an internal header
31
35
    add_test(clean-public-${location}-headers ${CMAKE_CURRENT_SOURCE_DIR}/check_public_headers.py ${public_inc_dir})