~ubuntu-branches/ubuntu/quantal/kdevplatform/quantal-proposed

« back to all changes in this revision

Viewing changes to plugins/git/tests/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-24 00:06:18 UTC
  • mfrom: (0.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101024000618-7otebin77mfcmt3b
Tags: 1.1.0-0ubuntu1
* New upstream release
  - Bump build-dependencies
  - Build against libboost-serialization1.42-dev
  - Update kdevplatform1-libs.install
  - Update kdevplatform-dev.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Due to the use of system() and some unix-style paths this test will only run
 
2
# under Linux. (Maybe this can be fixed later)
 
3
#
 
4
# Moreover, I'm not sure if there is a cvs commandline client for windows
 
5
# (need to check this out ...)
 
6
 
 
7
if (UNIX)
 
8
 
 
9
# Running the test only makes sense if the git command line client
 
10
# is present. So check for it before adding the test...
 
11
FIND_PROGRAM(GIT NAMES git
 
12
        PATHS
 
13
        /bin
 
14
        /usr/bin
 
15
        /usr/local/bin
 
16
)
 
17
 
 
18
if (GIT)
 
19
 
 
20
    set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
 
21
    set(gitInitTest_SRCS initTest.cpp ../gitplugin.cpp ../gitclonejob.cpp ../stashmanagerdialog.cpp)
 
22
    kde4_add_ui_files(gitInitTest_SRCS ../stashmanagerdialog.ui)
 
23
    kde4_add_unit_test(kdevgit-test ${gitInitTest_SRCS})
 
24
    target_link_libraries(kdevgit-test
 
25
        ${QT_QTTEST_LIBRARY}
 
26
        ${KDE4_KDECORE_LIBS}
 
27
        ${KDEVPLATFORM_VCS_LIBRARIES}
 
28
        ${KDEVPLATFORM_UTIL_LIBRARIES}
 
29
        ${KDEVPLATFORM_TESTS_LIBRARIES}
 
30
    )
 
31
endif (GIT)
 
32
 
 
33
endif (UNIX)