-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
94 lines (79 loc) · 2.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
########################################################
# Files
SET (GEOREF_SRCS
qgsgcpcanvasitem.cpp
qgsgeorefconfigdialog.cpp
qgsgeorefdatapoint.cpp
qgsgeorefdelegates.cpp
qgsgeorefdescriptiondialog.cpp
qgsgeorefplugin.cpp
qgsgeorefplugingui.cpp
qgsgeoreftooladdpoint.cpp
qgsgeoreftooldeletepoint.cpp
qgsgeoreftoolmovepoint.cpp
qgsgeorefvalidators.cpp
qgsleastsquares.cpp
qgsmapcoordsdialog.cpp
qgstransformsettingsdialog.cpp
qgsgcplist.cpp
qgsgcplistmodel.cpp
qgsimagewarper.cpp
qgsgeoreftransform.cpp
qgsgcplistwidget.cpp
)
SET (GEOREF_UIS
qgsgeorefconfigdialogbase.ui
qgsgeorefdescriptiondialogbase.ui
qgsgeorefpluginguibase.ui
qgsmapcoordsdialogbase.ui
qgstransformsettingsdialogbase.ui
../../ui/qgsprojectionselectorbase.ui
../../ui/qgsrasterlayerpropertiesbase.ui
)
SET (GEOREF_MOC_HDRS
qgsgcpcanvasitem.h
qgsgeorefconfigdialog.h
qgsgeorefdatapoint.h
qgsgeorefdelegates.h
qgsgeorefdescriptiondialog.h
qgsgeorefplugin.h
qgsgeorefplugingui.h
qgsgeoreftooladdpoint.h
qgsgeoreftooldeletepoint.h
qgsgeoreftoolmovepoint.h
qgsgeorefvalidators.h
qgsleastsquares.h
qgsmapcoordsdialog.h
qgstransformsettingsdialog.h
qgsgcplist.h
qgsgcplistmodel.h
qgsgcplistwidget.h
)
SET (GEOREF_RCCS georeferencer.qrc)
########################################################
# Build
QT4_WRAP_UI (GEOREF_UIS_H ${GEOREF_UIS})
QT4_WRAP_CPP (GEOREF_MOC_SRCS ${GEOREF_MOC_HDRS})
QT4_ADD_RESOURCES(GEOREF_RCC_SRCS ${GEOREF_RCCS})
ADD_LIBRARY (georefplugin MODULE ${GEOREF_SRCS} ${GEOREF_MOC_SRCS} ${GEOREF_RCC_SRCS} ${GEOREF_UIS_H})
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../gui
..
${GSL_INCLUDE_DIR}
${QGIS_INCLUDE_DIR}
${GDAL_INCLUDE_DIR}
${QT_QTXML_INCLUDE_DIR}
)
TARGET_LINK_LIBRARIES(georefplugin
qgis_core
qgis_gui
${GSL_LIBRARIES}
)
########################################################
# Install
INSTALL(TARGETS georefplugin
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})