Commit 7ad9b5c7 authored by Robert Maynard's avatar Robert Maynard
Browse files

Correct issue that python wrapping shouldn't be on by default

parent c48f073b
......@@ -24,7 +24,7 @@ option(BUILD_SHARED_LIBS "Build SMTK using shared libraries" OFF)
# Option to build Qt ui compoments for attributes
option(SMTK_BUILD_QT "Build Qt GUI" OFF)
option(SMTK_ENABLE_TESTING "Enable Testing" ON)
option(SMTK_BUILD_PYTHON_WRAPPINGS "Build Python Wrappings using Shiboken" ON)
option(SMTK_BUILD_PYTHON_WRAPPINGS "Build Python Wrappings using Shiboken" OFF)
################################################################################
# Testing Related Settings
......
......@@ -81,18 +81,18 @@ if(SMTK_BUILD_PYTHON_WRAPPINGS AND Shiboken_FOUND)
HEADERS ${smtk_headers}
)
#get the location to copy the shiboken library so developers have an
#easier time testing the python wrapping
#get the location to copy the shiboken library so developers have an
#easier time testing the python wrapping
#first we have to resolve the path since shiboken library most likely
#uses symlinks and we have to copy that version
get_filename_component(shiboken_path "${SHIBOKEN_LIBRARY}" REALPATH)
file(COPY "${shiboken_path}" DESTINATION "${SMTK_BINARY_DIR}")
#first we have to resolve the path since shiboken library most likely
#uses symlinks and we have to copy that version
get_filename_component(shiboken_path "${SHIBOKEN_LIBRARY}" REALPATH)
file(COPY "${shiboken_path}" DESTINATION "${SMTK_BINARY_DIR}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/smtk.py"
"${SMTK_BINARY_DIR}/smtk.py" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/smtk.py"
"${SMTK_BINARY_DIR}/smtk.py" @ONLY)
#todo we need to install this file in such a way that it can resolve
#the location of shiboken, which is going to mean running fixup bundle
#on the mac, and than fixing up the smtk.py package script
#todo we need to install this file in such a way that it can resolve
#the location of shiboken, which is going to mean running fixup bundle
#on the mac, and than fixing up the smtk.py package script
endif()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment