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

« back to all changes in this revision

Viewing changes to test/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-13 09:08:07 UTC
  • Revision ID: james.westby@ubuntu.com-20091213090807-ibl3mdtee5964009
Tags: upstream-0.95.0~svn1057107
ImportĀ upstreamĀ versionĀ 0.95.0~svn1057107

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)
 
8
include_directories(
 
9
    ${CMAKE_CURRENT_SOURCE_DIR}
 
10
    ${CMAKE_CURRENT_BINARY_DIR}
 
11
    ${CMAKE_SOURCE_DIR}/agent
 
12
    ${QT_QTTEST_INCLUDE_DIR}
 
13
    ${POLKIT_INCLUDE_DIRS}
 
14
)
 
15
 
 
16
set(polkit_qt_test_SRCS
 
17
    test.cpp
 
18
)
 
19
 
 
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
target_link_libraries(polkit-qt-test
 
30
    ${QT_QTCORE_LIBRARY}
 
31
    ${QT_QTTEST_LIBRARY}
 
32
    ${QT_QTGUI_LIBRARY}
 
33
    polkit-qt-core-1
 
34
)