Revision e8d0ff77767aa6f670d4b7588183d04c7ad98aa2 authored by Maxim Rylov on 06 October 2022, 07:25:02 UTC, committed by Nyall Dawson on 20 October 2022, 03:42:48 UTC
1 parent 22c6bed
CMakeLists.txt
set(QGISPYTHON_SRCS qgispython.cpp qgspythonutilsimpl.cpp)
add_library (qgispython SHARED ${QGISPYTHON_SRCS})
# require c++17
target_compile_features(qgispython PRIVATE cxx_std_17)
target_include_directories(qgispython PUBLIC
${CMAKE_SOURCE_DIR}/src/python
${CMAKE_BINARY_DIR}/src/python
)
target_include_directories(qgispython SYSTEM PRIVATE
${Python_INCLUDE_DIRS}
)
set_target_properties(qgispython PROPERTIES
CLEAN_DIRECT_OUTPUT 1
)
#generate unversioned libs for android
if (NOT ANDROID)
set_target_properties(qgispython PROPERTIES
VERSION ${COMPLETE_VERSION}
SOVERSION ${COMPLETE_VERSION}
)
endif()
target_link_libraries(qgispython
qgis_core
${Python_LIBRARIES}
${OPENPTY_LIBRARY}
)
GENERATE_EXPORT_HEADER(
qgispython
BASE_NAME PYTHON
EXPORT_FILE_NAME qgis_python.h
)
if (APPLE)
set_target_properties(qgispython PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
endif()
install(TARGETS qgispython
RUNTIME DESTINATION ${QGIS_BIN_DIR}
LIBRARY DESTINATION ${QGIS_LIB_DIR}
)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...