-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
CMakeLists.txt
44 lines (29 loc) · 942 Bytes
/
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
########################################################
# Files
SET (MSEXPORT_SRCS
qgsmapserverexport.cpp
ms_main.cpp
msexport_wrap.cxx
)
SET (MSEXPORT_MOC_HDRS qgsmapserverexport.h)
SET (MSEXPORT_UIS qgsmapserverexportbase.ui)
########################################################
# Build
QT4_WRAP_UI (MSEXPORT_UIS_H ${MSEXPORT_UIS})
QT4_WRAP_CPP (MSEXPORT_MOC_SRCS ${MSEXPORT_MOC_HDRS} ${MSEXPORT_UIS_H})
INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
${PYTHON_INCLUDE_PATH}
${CMAKE_SOURCE_DIR}/src/core
)
ADD_EXECUTABLE (msexport MACOSX_BUNDLE ${MSEXPORT_SRCS} ${MSEXPORT_MOC_SRCS})
TARGET_LINK_LIBRARIES (msexport
${QT_LIBRARIES}
${PYTHON_LIBRARIES}
qgis_core
)
########################################################
# Install
INSTALL(TARGETS msexport RUNTIME DESTINATION ${QGIS_BIN_DIR})
FILE (GLOB PYTHON_SRCS *.py)
INSTALL(FILES ${PYTHON_SRCS} DESTINATION ${QGIS_DATA_DIR}/python)