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

« back to all changes in this revision

Viewing changes to Source/WXDialog/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
 
##---------------------------------------------------------------------------
2
 
## $RCSfile: CMakeLists.txt,v $
3
 
## $Source: /cvsroot/CMake/CMake/Source/WXDialog/CMakeLists.txt,v $
4
 
## $Revision: 1.25 $
5
 
## $Date: 2007-11-05 19:47:20 $
6
 
##---------------------------------------------------------------------------
7
 
## Author:      Jorgen Bodde
8
 
## Copyright:   (c) Jorgen Bodde
9
 
## License:     wxWidgets License
10
 
##---------------------------------------------------------------------------
11
 
 
12
 
# wxWindows -> wxWidgets Jan Woetzel 07/2006
13
 
# tested with wx 2.6.3 with "multilib" build on Windows XP
14
 
 
15
 
# CMake Options
16
 
SET(CMAKE_VERBOSE_MAKEFILE TRUE)
17
 
 
18
 
# suppress wx header warnings? 
19
 
#SET(HAVE_ISYSTEM 1)
20
 
 
21
 
# in addition to wx std libs we need
22
 
SET( wxWidgets_USE_LIBS 
23
 
  std 
24
 
  html adv xml xrc )
25
 
FIND_PACKAGE(wxWidgets REQUIRED)
26
 
#INCLUDE(${CMAKE_ROOT}/Modules/FindwxWidgets.cmake)
27
 
 
28
 
# Start using wx stuff when it is fully found and set
29
 
IF(wxWidgets_FOUND)
30
 
  INCLUDE( ${wxWidgets_USE_FILE} )
31
 
 
32
 
  SET (CMAKE_SRCS 
33
 
    CMakeSetupFrame.cpp
34
 
    CMakeSetup.cpp
35
 
    CMakeSetupFrame.h
36
 
    CMakeSetup.h 
37
 
    PropertyList.cpp
38
 
    PropertyList.h
39
 
    app_resources.cpp
40
 
    app_resources.h
41
 
    progressdlg.cpp
42
 
    progressdlg.h 
43
 
    aboutdlg.cpp
44
 
    aboutdlg.h 
45
 
    optionsdlg.cpp
46
 
    optionsdlg.h 
47
 
    config.h 
48
 
    CommandLineInfo.cpp
49
 
    CommandLineInfo.h )
50
 
  
51
 
  # include .rc when windows    
52
 
  IF(WIN32)
53
 
    SET ( CMAKE_SRCS ${CMAKE_SRCS}  CMakeSetup.rc )
54
 
  ENDIF(WIN32)
55
 
  
56
 
  INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Source/WXDialog
57
 
    ${wxWidgets_INCLUDE_DIR} )
58
 
  LINK_DIRECTORIES( ${wxWidgets_LINK_DIRECTORIES} 
59
 
    ${CMake_BINARY_DIR}/Source 
60
 
    ${CMake_BINARY_DIR}/Source/kwsys )
61
 
  
62
 
  IF(APPLE)
63
 
    ADD_EXECUTABLE(WXDialog MACOSX_BUNDLE  ${CMAKE_SRCS})
64
 
  ELSE(APPLE)
65
 
    ADD_EXECUTABLE(WXDialog WIN32  ${CMAKE_SRCS})
66
 
  ENDIF(APPLE)
67
 
  INSTALL_TARGETS(/bin WXDialog)
68
 
  
69
 
  # not required on MSVS beause bound to _DEBUG, 
70
 
  # but other compiler may need it.
71
 
  # However, the define prevents multiple build configurations 
72
 
  # in one build tree,
73
 
  # e.g. MSVS supports Debug;Release
74
 
  # TODO: shall we add the define or not - 
75
 
  # favor multi config or all compilers? (JW)
76
 
  SET(CMAKE_CXX_FLAGS_DEBUG 
77
 
    "${CMAKE_CXX_FLAGS_DEBUG} -D__WXDEBUG__ -DWXDEBUG=1")
78
 
  
79
 
  IF(LINUX)
80
 
    ADD_DEFINITIONS( -DLINUX=1 )
81
 
  ENDIF(LINUX)
82
 
  
83
 
  # if the checkbox view functionality is not desired,
84
 
  # exclude this part from the smple
85
 
  TARGET_LINK_LIBRARIES(WXDialog ${wxWidgets_LIBRARIES} cmsys CMakeLib)
86
 
  INSTALL_TARGETS(/bin WXDialog)
87
 
ENDIF(wxWidgets_FOUND)