~ubuntu-branches/ubuntu/oneiric/polkit-qt-1/oneiric

« back to all changes in this revision

Viewing changes to test/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-11-07 01:18:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101107011828-qf5lzf950ih0l250
Tags: 0.98.1~git20101107-0ubuntu1
* New upstream snapshot:
  - Drop kubuntu_01_fix_glib_ftbfs.diff, accepted upstream
  - Bump build-depend versions on polkit to >= 0.98

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#install(FILES org.qt.policykit.examples.policy DESTINATION ${SHARE_INSTALL_PREFIX}/polkit-1/actions/)
2
 
 
3
 
FIND_PACKAGE(Qt4 REQUIRED)
4
 
include (${QT_USE_FILE})
5
 
include (FindPkgConfig)
6
 
 
7
 
pkg_check_modules (POLKIT REQUIRED polkit-gobject-1>=0.94)
 
1
enable_testing()
 
2
 
8
3
include_directories(
9
4
    ${CMAKE_CURRENT_SOURCE_DIR}
10
5
    ${CMAKE_CURRENT_BINARY_DIR}
11
6
    ${CMAKE_SOURCE_DIR}/agent
12
 
    ${QT_QTTEST_INCLUDE_DIR}
13
 
    ${POLKIT_INCLUDE_DIRS}
14
7
)
15
8
 
16
 
set(polkit_qt_test_SRCS
 
9
automoc4_add_executable(polkit-qt-test
17
10
    test.cpp
18
11
)
19
12
 
20
 
QT4_WRAP_CPP(polkit_qt_test_MOC_SRCS
21
 
    test.h
22
 
)
23
 
 
24
 
add_executable(polkit-qt-test
25
 
    ${polkit_qt_test_SRCS}
26
 
    ${polkit_qt_test_MOC_SRCS}
27
 
)
28
 
 
29
13
target_link_libraries(polkit-qt-test
30
14
    ${QT_QTCORE_LIBRARY}
31
15
    ${QT_QTTEST_LIBRARY}
32
16
    ${QT_QTGUI_LIBRARY}
33
17
    polkit-qt-core-1
34
18
)
 
19
 
 
20
add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-test)