buildsystem - improve installing to non-KDAB location

This commit is contained in:
Allen Winter
2021-07-29 16:42:07 -04:00
parent a26759f340
commit ce349d0fcd
2 changed files with 22 additions and 29 deletions

View File

@@ -12,6 +12,17 @@
set(PYTHON_VERSION "3.7" CACHE STRING "Use specific python version to build the project.")
find_package(Python3 ${PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
# Just to fix warnings with --warn-uninitialized
if(NOT DEFINED SHIBOKEN_CUSTOM_PREFIX) #look for shiboken in a custom location
set(SHIBOKEN_CUSTOM_PREFIX "")
endif()
if(NOT DEFINED PYSIDE2_CUSTOM_PREFIX) #look for pyside in a custom location
set(PYSIDE2_CUSTOM_PREFIX "")
endif()
if(NOT DEFINED PYSIDE6_CUSTOM_PREFIX) #look for pyside in a custom location
set(PYSIDE6_CUSTOM_PREFIX "")
endif()
if(${PROJECT_NAME}_QT6)
find_package(Shiboken6 REQUIRED)
find_package(PySide6 ${Qt6Widgets_VERSION} EXACT REQUIRED)