~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Modules/CTestTargets.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#=============================================================================
 
3
# Copyright 2005-2009 Kitware, Inc.
 
4
#
 
5
# Distributed under the OSI-approved BSD License (the "License");
 
6
# see accompanying file Copyright.txt for details.
 
7
#
 
8
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
10
# See the License for more information.
 
11
#=============================================================================
 
12
# (To distributed this file outside of CMake, substitute the full
 
13
#  License text for the above reference.)
 
14
 
1
15
IF(NOT RUN_FROM_CTEST_OR_DART)
2
16
  MESSAGE(FATAL_ERROR "Do not incldue CTestTargets.cmake directly")
3
17
ENDIF(NOT RUN_FROM_CTEST_OR_DART)
50
64
    ADD_CUSTOM_TARGET(${mode}
51
65
      ${CMAKE_CTEST_COMMAND} ${__conf_types} -D ${mode}
52
66
      )
 
67
    SET_PROPERTY(TARGET ${mode} PROPERTY RULE_LAUNCH_CUSTOM "")
53
68
  ENDFOREACH(mode)
54
69
 
55
70
  # For Makefile generators add more granular targets.
63
78
        ADD_CUSTOM_TARGET(${mode}${testtype}
64
79
          ${CMAKE_CTEST_COMMAND} ${__conf_types} -D ${mode}${testtype}
65
80
          )
 
81
        SET_PROPERTY(TARGET ${mode}${testtype} PROPERTY RULE_LAUNCH_CUSTOM "")
66
82
      ENDFOREACH(testtype)
67
83
    ENDFOREACH(mode)
68
84
  ENDIF("${CMAKE_GENERATOR}" MATCHES Make)