~ubuntu-branches/ubuntu/oneiric/libclaw/oneiric

« back to all changes in this revision

Viewing changes to examples/image/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge
  • Date: 2008-05-17 15:36:57 UTC
  • Revision ID: james.westby@ubuntu.com-20080517153657-0b1204j754ykoz48
Tags: upstream-1.5.2b
ImportĀ upstreamĀ versionĀ 1.5.2b

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
PROJECT(claw-image-example)
 
2
 
 
3
# check profiling mode
 
4
IF( CMAKE_BUILD_TYPE MATCHES profile )
 
5
  SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -pg" )
 
6
ENDIF( CMAKE_BUILD_TYPE MATCHES profile )
 
7
 
 
8
# check DEBUG mode
 
9
IF( CMAKE_BUILD_TYPE MATCHES debug )
 
10
  SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_DEBUG" )
 
11
ENDIF( CMAKE_BUILD_TYPE MATCHES debug )
 
12
 
 
13
# common flags
 
14
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -pedantic -Wall" )
 
15
 
 
16
#-------------------------------------------------------------------------------
 
17
# look for libraries
 
18
INCLUDE( FindCLAW )
 
19
 
 
20
ADD_DEFINITIONS( ${CLAW_DEFINITIONS} )
 
21
INCLUDE_DIRECTORIES(
 
22
  ${CLAW_INCLUDE_DIRECTORY}
 
23
  ${CLAW_GRAPHIC_INCLUDE_DIRECTORY} )
 
24
LINK_DIRECTORIES(
 
25
  ${CLAW_LINK_DIRECTORY}
 
26
  ${CLAW_GRAPHIC_LINK_DIRECTORY})
 
27
 
 
28
ADD_EXECUTABLE( ex-image main.cpp )
 
29
TARGET_LINK_LIBRARIES( ex-image
 
30
  ${CLAW_GRAPHIC_LIBRARIES}
 
31
  ${CLAW_APPLICATION_LIBRARIES} )