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

« back to all changes in this revision

Viewing changes to Tests/SimpleInstallS2/CMakeLists.txt

  • 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:
33
33
    )
34
34
  SET(t1NAMES test1 test1${CMAKE_DEBUG_POSTFIX} test1rel)
35
35
  SET(t2NAMES test2 test2${CMAKE_DEBUG_POSTFIX})
36
 
  SET(t4NAMES test4 test4${CMAKE_DEBUG_POSTFIX})
 
36
  SET(t4NAMES test4out test4out${CMAKE_DEBUG_POSTFIX})
37
37
 
38
38
  # Make sure the install script ran.
39
39
  SET(CMAKE_INSTALL_SCRIPT_DID_RUN 0)
165
165
  ADD_LIBRARY(test3 MODULE lib3.cxx)
166
166
  ADD_LIBRARY(test4 SHARED lib4.cxx)
167
167
 
 
168
  # Test <ARCHIVE|LIBRARY|RUNTIME>_OUTPUT_NAME properties.
 
169
  SET_PROPERTY(TARGET test4 PROPERTY ARCHIVE_OUTPUT_NAME test4out)
 
170
  SET_PROPERTY(TARGET test4 PROPERTY LIBRARY_OUTPUT_NAME test4out)
 
171
 
168
172
  ADD_EXECUTABLE (SimpleInstall inst.cxx foo.c foo.h)
169
173
  TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4)
170
174
  SET(install_target SimpleInstall)
270
274
  # Test empty directory installation.
271
275
  INSTALL(DIRECTORY DESTINATION MyTest/share/empty)
272
276
 
 
277
  # Test optional directory installation.
 
278
  INSTALL(DIRECTORY does-not-exist DESTINATION MyTest/share OPTIONAL)
 
279
 
273
280
  # Test user-specified install scripts, with and without COMPONENT.
274
281
  INSTALL(
275
282
    SCRIPT InstallScript1.cmake