-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
CMakeLists.txt
81 lines (66 loc) · 1.48 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
########################################################
# Files
set(QGIS_PROCESS_SRCS
main.cpp
qgsprocess.cpp
${CMAKE_SOURCE_DIR}/external/nlohmann/json_fwd.hpp
)
if (UNIX AND NOT ANDROID)
set(QGIS_PROCESS_SRCS ${QGIS_PROCESS_SRCS}
${CMAKE_SOURCE_DIR}/external/qt-unix-signals/sigwatch.cpp
)
endif()
########################################################
# Build
add_executable (qgis_process MACOSX_BUNDLE ${QGIS_PROCESS_SRCS})
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
include_directories(SYSTEM
${QT_INCLUDE_DIR}
${QGIS_INCLUDE_DIR}
${PROJ_INCLUDE_DIR}
${GDAL_INCLUDE_DIR}
${GEOS_INCLUDE_DIR}
)
if (UNIX AND NOT ANDROID)
include_directories(SYSTEM
${CMAKE_SOURCE_DIR}/external/qt-unix-signals
)
endif()
include_directories(
${CMAKE_SOURCE_DIR}/src/python
${CMAKE_BINARY_DIR}/src/core
${CMAKE_BINARY_DIR}/src/python
${CMAKE_BINARY_DIR}/src/analysis
)
if (WITH_3D)
include_directories(
${CMAKE_SOURCE_DIR}/src/3d/processing
${CMAKE_BINARY_DIR}/src/3d
)
include_directories(SYSTEM
${QT5_3DEXTRA_INCLUDE_DIR}
)
endif()
if (WITH_BINDINGS)
target_link_libraries(qgis_process qgispython)
endif()
target_link_libraries(qgis_process
qgis_core
qgis_analysis
${Qt5Core_LIBRARIES}
${PROJ_LIBRARY}
${GEOS_LIBRARY}
${GDAL_LIBRARY}
)
if (WITH_3D)
target_link_libraries(qgis_process
qgis_3d
)
endif()
# install
install (TARGETS qgis_process
BUNDLE DESTINATION ${QGIS_BIN_DIR}
RUNTIME DESTINATION ${QGIS_BIN_DIR}
)