Use python base name as library prefix.
Use the same CMAKE_BUILD_TYPE as shiboken if none was specified. Append SHIBOKEN_PYTHON_BASENAME in the library suffix. Fix bug #509. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
This commit is contained in:
parent
99cbdef40c
commit
7e667036d5
4 changed files with 19 additions and 11 deletions
|
|
@ -1,9 +1,5 @@
|
|||
# PYSIDE_INCLUDE_DIR - Directories to include to use PySide
|
||||
# PYSIDE_LIBRARY - Files to link against to use PySide
|
||||
# PYSIDE_PYTHONPATH - Path to where the PySide Python module files could be found
|
||||
# PYSIDE_TYPESYSTEMS - Type system files that should be used by other bindings extending PySide
|
||||
|
||||
SET(PYSIDE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/PySide@pyside_SUFFIX@")
|
||||
SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
|
||||
SET(PYSIDE_PYTHONPATH "@SITE_PACKAGE@")
|
||||
SET(PYSIDE_TYPESYSTEMS "@CMAKE_INSTALL_PREFIX@/share/PySide@pyside_SUFFFIX@/typesystems")
|
||||
if (NOT PYTHON_BASENAME)
|
||||
message(STATUS "Using default python: @PYTHON_BASENAME@")
|
||||
SET(PYTHON_BASENAME @PYTHON_BASENAME@)
|
||||
endif()
|
||||
include(@LIB_INSTALL_DIR@/cmake/PySide-@pyside_VERSION@/PySideConfig-${PYTHON_BASENAME}.cmake)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue