~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/cmakelibc/CMakeLists.txt.src

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#this is just a basic CMakeLists.txt, for more information see the cmake manpage
2
 
 
3
 
#add definitions, compiler switches, etc.
4
 
ADD_DEFINITIONS(-Wall -O2)
5
 
 
6
 
#build a shared library
7
 
ADD_LIBRARY(%{APPNAMELC} SHARED %{APPNAMELC}.c)
8
 
 
9
 
#for testing the shared library you probably need some test app too
10
 
ADD_EXECUTABLE(%{APPNAMELC}test %{APPNAMELC}test.c)
11
 
 
12
 
#need to link to some other libraries ? just add them here
13
 
TARGET_LINK_LIBRARIES(%{APPNAMELC}test %{APPNAMELC})
14
 
 
15
 
#add an install target here
16
 
#INSTALL_FILES(...)
17
 
#INSTALL_PROGRAMS(...)
18
 
#INSTALL_TARGET(...)
19