summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-10-25 16:30:40 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-10-25 17:53:05 -0300
commit1f7d295c511062f8973a3e9554173752549b0bc6 (patch)
tree866571e38fb42ef00f46fd6887b00fe79c8fff34 /data
parent7368a0a533c12ba09e7713695415e1f247763883 (diff)
downloadshiboken-1f7d295c511062f8973a3e9554173752549b0bc6.tar.gz
shiboken-1f7d295c511062f8973a3e9554173752549b0bc6.tar.xz
shiboken-1f7d295c511062f8973a3e9554173752549b0bc6.zip
Updated Shiboken cmake files to provide build type information.
The build type information, contained in the the SHIBOKEN_BUILD_TYPE variable, will tell modules linking with libshiboken if it was built in Release or Debug mode. The SHIBOKEN_PYTHON_INTERPRETER variable was also added to the cmake Shiboken files, to make it known which Python interpreter (normal or debug, in systems where this separation exists). SHIBOKEN_PYTHON_LIBRARIES variable tells which Python library libshiboken was linked against.
Diffstat (limited to 'data')
-rw-r--r--data/ShibokenConfig.cmake.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/ShibokenConfig.cmake.in b/data/ShibokenConfig.cmake.in
index 8d46e76a..367ac5c0 100644
--- a/data/ShibokenConfig.cmake.in
+++ b/data/ShibokenConfig.cmake.in
@@ -1,5 +1,8 @@
-# SHIBOKEN_INCLUDE_DIR - Directories to include to use SHIBOKEN
-# SHIBOKEN_LIBRARIES - Files to link against to use SHIBOKEN
+# SHIBOKEN_INCLUDE_DIR - Directories to include to use SHIBOKEN
+# SHIBOKEN_LIBRARIES - Files to link against to use SHIBOKEN
+# SHIBOKEN_BUILD_TYPE - Tells if Shiboken was compiled in Release or Debug mode.
+# SHIBOKEN_PYTHON_INTERPRETER - Python interpreter (regular or debug) to be used with the bindings.
+# SHIBOKEN_PYTHON_LIBRARIES - Python libraries (regular or debug) Shiboken is linked against.
SET(SHIBOKEN_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/shiboken@shiboken_SUFFIX@")
if(MSVC)
@@ -9,3 +12,6 @@ elseif(WIN32)
else()
SET(SHIBOKEN_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@shiboken@shiboken_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
endif()
+SET(SHIBOKEN_BUILD_TYPE "@SHIBOKEN_BUILD_TYPE@")
+SET(SHIBOKEN_PYTHON_INTERPRETER "@PYTHON_EXECUTABLE@")
+SET(SHIBOKEN_PYTHON_LIBRARIES "@SBK_PYTHON_LIBRARIES@")