CMake: [skip ci] add build option to let the user decide to link with shiboken/PySide at build time

This commit is contained in:
wmayer
2020-06-10 14:17:50 +02:00
parent b7bb7d1f2b
commit b2c72a212d
2 changed files with 68 additions and 7 deletions

View File

@@ -193,7 +193,7 @@ if(FREECAD_USE_SHIBOKEN)
endif (SHIBOKEN_LIBRARY)
endif(FREECAD_USE_SHIBOKEN)
if(PYSIDE_INCLUDE_DIR)
if(FREECAD_USE_PYSIDE)
include_directories(
${PYSIDE_INCLUDE_DIR}
${PYSIDE_INCLUDE_DIR}/QtCore
@@ -218,7 +218,7 @@ if(PYSIDE_INCLUDE_DIR)
else()
add_definitions(-DHAVE_PYSIDE)
endif()
endif(PYSIDE_INCLUDE_DIR)
endif(FREECAD_USE_PYSIDE)
generate_from_xml(DocumentPy)
generate_from_xml(PythonWorkbenchPy)