~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/analysis/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
#############################################################
 
4
# sources
 
5
 
 
6
SET(QGIS_ANALYSIS_SRCS
 
7
  interpolation/qgsgridfilewriter.cpp
 
8
  interpolation/qgsidwinterpolator.cpp
 
9
  interpolation/qgsinterpolator.cpp
 
10
  interpolation/qgstininterpolator.cpp
 
11
  interpolation/Bezier3D.cc
 
12
  interpolation/CloughTocherInterpolator.cc
 
13
  interpolation/DualEdgeTriangulation.cc
 
14
  interpolation/HalfEdge.cc
 
15
  interpolation/Line3D.cc
 
16
  interpolation/LinTriangleInterpolator.cc
 
17
  interpolation/MathUtils.cc
 
18
  interpolation/NormVecDecorator.cc
 
19
  interpolation/Node.cc
 
20
  interpolation/ParametricLine.cc
 
21
  interpolation/Point3D.cc
 
22
  interpolation/TriangleInterpolator.cc
 
23
  interpolation/Triangulation.cc
 
24
  interpolation/TriDecorator.cc
 
25
  interpolation/Vector3D.cc
 
26
  raster/qgsninecellfilter.cpp
 
27
  raster/qgsruggednessfilter.cpp
 
28
  raster/qgsderivativefilter.cpp
 
29
  raster/qgsslopefilter.cpp
 
30
  raster/qgsaspectfilter.cpp
 
31
  raster/qgstotalcurvaturefilter.cpp
 
32
  vector/qgsgeometryanalyzer.cpp
 
33
  vector/qgszonalstatistics.cpp
 
34
  vector/qgsoverlayanalyzer.cpp
 
35
)
 
36
 
 
37
SET(QGIS_ANALYSIS_MOC_HDRS
 
38
)
 
39
 
 
40
QT4_WRAP_CPP(QGIS_ANALYSIS_MOC_SRCS ${QGIS_ANALYSIS_MOC_HDRS})
 
41
 
 
42
 
 
43
INCLUDE_DIRECTORIES(
 
44
  ${CMAKE_CURRENT_SOURCE_DIR} 
 
45
  ${CMAKE_CURRENT_SOURCE_DIR}/../core/
 
46
  ${CMAKE_CURRENT_SOURCE_DIR}/../core/renderer
 
47
  ${CMAKE_CURRENT_SOURCE_DIR}/../core/spatialindex
 
48
  interpolation
 
49
  ${PROJ_INCLUDE_DIR}
 
50
  ${GEOS_INCLUDE_DIR}
 
51
  ${GDAL_INCLUDE_DIR}
 
52
)
 
53
 
 
54
IF (WIN32)
 
55
  IF (MSVC)
 
56
    ADD_DEFINITIONS("-DANALYSIS_EXPORT=__declspec(dllexport)")
 
57
  ELSE (MSVC)
 
58
    ADD_DEFINITIONS("-UANALYSIS_EXPORT \"-DANALYSIS_EXPORT=__declspec(dllexport)\"")
 
59
  ENDIF (MSVC)
 
60
ENDIF (WIN32)
 
61
 
 
62
 
 
63
#############################################################
 
64
# qgis_analysis library
 
65
 
 
66
ADD_LIBRARY(qgis_analysis SHARED ${QGIS_ANALYSIS_SRCS} ${QGIS_ANALYSIS_MOC_SRCS} )
 
67
 
 
68
ADD_DEPENDENCIES(qgis_analysis qgis_core)
 
69
 
 
70
SET_TARGET_PROPERTIES(qgis_analysis PROPERTIES VERSION ${COMPLETE_VERSION} SOVERSION ${COMPLETE_VERSION})
 
71
 
 
72
TARGET_LINK_LIBRARIES(qgis_analysis
 
73
  qgis_core
 
74
)
 
75
 
 
76
IF (APPLE)
 
77
  SET_TARGET_PROPERTIES(qgis_analysis PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE )
 
78
ENDIF (APPLE)
 
79
 
 
80
INSTALL(TARGETS qgis_analysis
 
81
  RUNTIME DESTINATION ${QGIS_BIN_DIR}
 
82
  LIBRARY DESTINATION ${QGIS_LIB_DIR}
 
83
  ARCHIVE DESTINATION ${QGIS_LIB_DIR})
 
84
 
 
85
 
 
86
# Added by Tim to install headers
 
87
 
 
88
SET(QGIS_ANALYSIS_HDRS vector/qgsgeometryanalyzer.h vector/qgszonalstatistics.h vector/qgsgeometryanalyzer.h interpolation/qgsinterpolator.h interpolation/qgsgridfilewriter.h interpolation/qgsidwinterpolator.h interpolation/qgstininterpolator.h
 
89
)
 
90
 
 
91
INSTALL(CODE "MESSAGE(\"Installing ANALYSIS headers...\")")
 
92
INSTALL(FILES ${QGIS_ANALYSIS_HDRS} ${QGIS_ANALYSIS_MOC_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})