~mterry/policykit-unity8/systemd

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: Bileto Bot
  • Author(s): Ted Gould
  • Date: 2016-08-29 20:50:11 UTC
  • mfrom: (6.5.15 testsuite-fix)
  • Revision ID: ci-train-bot@canonical.com-20160829205011-cm2i5shk1t4segza
Fix test suite and make it run on package build

Approved by: Charles Kerr, unity-api-1-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
include_directories(${GIO_INCLUDE_DIRS})
4
4
include_directories(${NOTIFY_INCLUDE_DIRS})
5
5
 
 
6
include_directories(${POLICYKIT_INCLUDE_DIRS})
 
7
add_definitions(-DPOLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE)
 
8
 
6
9
##############
7
10
# Google Test
8
11
##############
27
30
 
28
31
add_executable (agent-test
29
32
        agent-test.cpp
 
33
        polkit-lib-mock.cpp
30
34
)
31
35
 
32
36
target_link_libraries(agent-test
39
43
        COMMAND agent-test
40
44
)
41
45
 
42
 
set_property(GLOBAL APPEND PROPERTY FORMAT_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/agent-test.cpp")
 
46
set_property(GLOBAL APPEND PROPERTY FORMAT_SOURCES
 
47
        "${CMAKE_CURRENT_SOURCE_DIR}/agent-test.cpp"
 
48
        "${CMAKE_CURRENT_SOURCE_DIR}/polkit-lib-mock.cpp"
 
49
        "${CMAKE_CURRENT_SOURCE_DIR}/policykit-mock.h"
 
50
)
43
51
 
44
52
##############
45
53
# AuthManager