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

« back to all changes in this revision

Viewing changes to Tests/SourceGroups/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:
1
1
cmake_minimum_required (VERSION 2.6)
2
2
project(SourceGroups)
3
3
 
4
 
# We need ansi C support, otherwise it doesn't build e.g. on HP-UX:
5
 
# main.c", line 3: error 1705: Function prototypes are an ANSI feature.
6
 
IF(CMAKE_ANSI_CFLAGS)
7
 
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
8
 
ENDIF(CMAKE_ANSI_CFLAGS)
9
 
 
10
 
 
11
4
# this is not really a test which can fail
12
5
# it is more an example with several source_group() 
13
6
# commands.
38
31
source_group(EmptyGroup)
39
32
 
40
33
 
41
 
add_executable(SourceGroups main.c bar.c foo.c sub1/foo.c sub1/foobar.c baz.c)
 
34
add_executable(SourceGroups main.c bar.c foo.c sub1/foo.c sub1/foobar.c baz.c README.txt)
42
35