-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
CMakeLists.txt
76 lines (56 loc) · 1.88 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
########################################################
# Files
SET (evis_SRCS
evis.cpp
databaseconnection/evisdatabaseconnectiongui.cpp
databaseconnection/evisdatabaseconnection.cpp
databaseconnection/evisdatabaselayerfieldselectiongui.cpp
databaseconnection/evisquerydefinition.cpp
eventbrowser/evisconfiguration.cpp
eventbrowser/evisgenericeventbrowsergui.cpp
eventbrowser/evisimagedisplaywidget.cpp
idtool/eviseventidtool.cpp
)
SET (evis_UIS
ui/evisdatabaseconnectionguibase.ui
ui/evisdatabaselayerfieldselectionguibase.ui
ui/evisgenericeventbrowserguibase.ui
)
SET (evis_MOC_HDRS
evis.h
databaseconnection/evisdatabaseconnectiongui.h
databaseconnection/evisdatabaselayerfieldselectiongui.h
eventbrowser/evisgenericeventbrowsergui.h
eventbrowser/evisimagedisplaywidget.h
)
SET (evis_RCCS resources/evis.qrc)
########################################################
# Build
QT4_WRAP_UI (evis_UIS_H ${evis_UIS})
QT4_WRAP_CPP (evis_MOC_SRCS ${evis_MOC_HDRS})
QT4_ADD_RESOURCES(evis_RCC_SRCS ${evis_RCCS})
ADD_LIBRARY (evis MODULE ${evis_SRCS} ${evis_MOC_SRCS} ${evis_RCC_SRCS} ${evis_UIS_H})
INCLUDE_DIRECTORIES(
${GDAL_INCLUDE_DIR}
${GEOS_INCLUDE_DIR}
${QT_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/databaseconnection
${CMAKE_CURRENT_SOURCE_DIR}/eventbrowser
${CMAKE_CURRENT_SOURCE_DIR}/idtool
${CMAKE_CURRENT_SOURCE_DIR}/../../gui
${CMAKE_CURRENT_SOURCE_DIR}/../../core
${CMAKE_CURRENT_SOURCE_DIR}/../../core/raster
${CMAKE_CURRENT_SOURCE_DIR}/..
)
TARGET_LINK_LIBRARIES(evis
qgis_core
qgis_gui
${QT_QTSQL_LIBRARY}
)
########################################################
# Install
INSTALL(TARGETS evis
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})