Updated PySide cmake files to use Python library information from Shiboken.

Shiboken cmake files provides information about which Python library to
link against through cmake SHIBOKEN_PYTHON_LIBRARIES variable. It also
sets the Py_DEBUG flag if necessary.

Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Renato Araujo <renato.filho@openbossa.org>
This commit is contained in:
Marcelo Lira 2010-10-25 18:23:03 -03:00
commit b0e9403d48
20 changed files with 19 additions and 29 deletions

View file

@ -151,16 +151,6 @@ if (NOT SITE_PACKAGE)
endif()
endif()
if(SHIBOKEN_BUILD_TYPE STREQUAL "Debug")
add_definitions("-DPy_DEBUG")
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES})
else()
set(PYSIDE_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
endif()
if(APPLE)
set(PYSIDE_PYTHON_LIBRARIES "-undefined dynamic_lookup")
endif()
set(GENERATOR_EXTRA_FLAGS --generatorSet=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic)
enable_testing()