File tree Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,6 @@ ELSE (WIN32)
581581
582582ENDIF (WIN32 )
583583
584- ADD_DEFINITIONS ("-DPYTHON_EXPORT=${DLLIMPORT} " )
585584ADD_DEFINITIONS ("-DANALYSIS_EXPORT=${DLLIMPORT} " )
586585ADD_DEFINITIONS ("-DAPP_EXPORT=${DLLIMPORT} " )
587586ADD_DEFINITIONS ("-DCUSTOMWIDGETS_EXPORT=${DLLIMPORT} " )
Original file line number Diff line number Diff line change @@ -526,6 +526,7 @@ INCLUDE_DIRECTORIES(
526526 ${CMAKE_CURRENT_BINARY_DIR} /../ui
527527 ${CMAKE_BINARY_DIR} /src/core
528528 ${CMAKE_BINARY_DIR} /src/gui
529+ ${CMAKE_BINARY_DIR} /src/python
529530)
530531INCLUDE_DIRECTORIES (SYSTEM
531532 ${QWT_INCLUDE_DIR}
Original file line number Diff line number Diff line change 1- REMOVE_DEFINITIONS ("-DPYTHON_EXPORT=${DLLIMPORT} " )
2- ADD_DEFINITIONS ("\" -DPYTHON_EXPORT=${DLLEXPORT} \" " )
3-
41SET (QGISPYTHON_SRCS qgispython.cpp qgspythonutilsimpl.cpp)
52
63INCLUDE_DIRECTORIES (
@@ -9,6 +6,7 @@ INCLUDE_DIRECTORIES(
96 ../core/raster
107 ../gui
118 ${CMAKE_BINARY_DIR} /src/core
9+ ${CMAKE_BINARY_DIR} /src/python
1210)
1311INCLUDE_DIRECTORIES (SYSTEM
1412 ${PYTHON_INCLUDE_PATH}
@@ -34,6 +32,16 @@ TARGET_LINK_LIBRARIES(qgispython
3432 ${OPENPTY_LIBRARY}
3533)
3634
35+ GENERATE_EXPORT_HEADER(
36+ qgispython
37+ BASE_NAME PYTHON
38+ EXPORT_FILE_NAME qgis_python.h
39+ )
40+
41+ INSTALL (FILES
42+ ${PROJECT_BINARY_DIR} /qgis_python.h DESTINATION ${QGIS_INCLUDE_DIR}
43+ )
44+
3745IF (APPLE )
3846 SET_TARGET_PROPERTIES (qgispython PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE )
3947ENDIF (APPLE )
Original file line number Diff line number Diff line change 1919// Needed for CMake variables defines
2020#include " qgsconfig.h"
2121
22+ #include " qgis_python.h"
2223
2324#include < QString>
2425#include < QStringList>
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ INCLUDE_DIRECTORIES(SYSTEM
196196INCLUDE_DIRECTORIES (
197197 ${CMAKE_BINARY_DIR} /src/core
198198 ${CMAKE_BINARY_DIR} /src/gui
199+ ${CMAKE_BINARY_DIR} /src/python
199200 ../core
200201 ../core/auth
201202 ../core/dxf
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
2323 ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/test
2424 ${CMAKE_BINARY_DIR} /src/core
2525 ${CMAKE_BINARY_DIR} /src/gui
26+ ${CMAKE_BINARY_DIR} /src/python
2627)
2728INCLUDE_DIRECTORIES (SYSTEM
2829 ${QT_INCLUDE_DIR}
You can’t perform that action at this time.
0 commit comments