Skip to content

Commit

Permalink
Add PythonQt_Wrap_QtAll build option
Browse files Browse the repository at this point in the history
Currently xmlpattern wrappers are not built even if PythonQt_Wrap_QtAll
is set to ON. Indeed, the wrappers failed to build on any of the supported
Qt version.
  • Loading branch information
jcfr committed Jul 10, 2012
1 parent 81a2cfc commit 97df3b0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,21 @@ add_definitions(-DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK)
#-----------------------------------------------------------------------------
# Build options

foreach(qtlib core gui network opengl sql svg uitools webkit xml xmlpatterns)
option(PythonQt_Wrap_QtAll "Make all Qt components available in python" OFF)

set(qtlibs core gui network opengl sql svg uitools webkit xml xmlpatterns)
foreach(qtlib ${qtlibs})
OPTION(PythonQt_Wrap_Qt${qtlib} "Make all of Qt${qtlib} available in python" OFF)
endforeach()

# Force option if it applies
if(PythonQt_Wrap_QtAll)
list(REMOVE_ITEM qtlibs xmlpatterns) # xmlpatterns wrapper does *NOT* build at all :(
foreach(qtlib ${qtlibs})
set(PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE)
endforeach()
endif()

option(PythonQt_DEBUG "Enable/Disable PythonQt debug output" OFF)
if(PythonQt_DEBUG)
add_definitions(-DPYTHONQT_DEBUG)
Expand Down

0 comments on commit 97df3b0

Please sign in to comment.