@@ -46,7 +46,7 @@ endforeach()
4646
4747# Force option if it applies
4848if (PythonQt_Wrap_QtAll)
49- list (REMOVE_ITEM qtlibs xmlpatterns) # xmlpatterns wrapper does *NOT* build at all :(
49+ list (REMOVE_ITEM qtlibs xmlpatterns) # xmlpatterns wrapper does *NOT* build at all :(
5050 foreach (qtlib ${qtlibs} )
5151 if (NOT ${PythonQt_Wrap_Qt${qtlib} })
5252 set (PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE)
@@ -76,7 +76,7 @@ if(QT4_FOUND)
7676 if (${found_qt_version} VERSION_LESS ${minimum_required_qt_version} )
7777 message (FATAL_ERROR "error: PythonQt requires Qt >= ${minimum_required_qt_version} -- you cannot use Qt ${found_qt_version} ." )
7878 endif ()
79-
79+
8080 # Enable required qt module
8181 foreach (qtlib network opengl sql svg uitools webkit xml xmlpatterns)
8282 string (TOUPPER ${qtlib} qtlib_uppercase)
9494endif ()
9595
9696#-----------------------------------------------------------------------------
97- # The variable "generated_cpp_suffix" allows to conditionnally compile the generated wrappers
97+ # The variable "generated_cpp_suffix" allows to conditionnally compile the generated wrappers
9898# associated with the Qt version being used.
9999set (generated_cpp_suffix "_${QT_VERSION_MAJOR}${QT_VERSION_MINOR} " )
100100if ("${generated_cpp_suffix} " STREQUAL "_46" )
@@ -123,7 +123,7 @@ set(sources
123123 src/PythonQtStdIn.cpp
124124 src/PythonQtStdOut.cpp
125125 src/gui/PythonQtScriptingConsole.cpp
126-
126+
127127 generated_cpp${generated_cpp_suffix} /PythonQt_QtBindings.cpp
128128
129129 generated_cpp${generated_cpp_suffix} /com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp
@@ -178,27 +178,27 @@ set(moc_sources
178178#-----------------------------------------------------------------------------
179179# Add extra sources
180180foreach (qtlib core gui network opengl sql svg uitools webkit xml xmlpatterns)
181-
181+
182182 if (${PythonQt_Wrap_Qt${qtlib} })
183-
183+
184184 ADD_DEFINITIONS (-DPYTHONQT_WRAP_Qt${qtlib} )
185-
185+
186186 set (file_prefix generated_cpp${generated_cpp_suffix} /com_trolltech_qt_${qtlib} /com_trolltech_qt_${qtlib} )
187-
187+
188188 foreach (index RANGE 0 11)
189-
189+
190190 # Source files
191191 if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /${file_prefix}${index} .cpp)
192192 list (APPEND sources ${file_prefix}${index} .cpp)
193193 endif ()
194-
194+
195195 # Headers that should run through moc
196196 if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /${file_prefix}${index} .h)
197197 list (APPEND moc_sources ${file_prefix}${index} .h)
198198 endif ()
199-
199+
200200 endforeach ()
201-
201+
202202 list (APPEND sources ${file_prefix} _init.cpp)
203203
204204 endif ()
@@ -224,7 +224,7 @@ qt4_add_resources(gen_qrc_sources ${qrc_sources})
224224include_directories (
225225 ${CMAKE_CURRENT_SOURCE_DIR} /src
226226 )
227-
227+
228228add_library (PythonQt SHARED
229229 ${sources}
230230 ${gen_moc_sources}
@@ -276,10 +276,10 @@ if(BUILD_TESTING)
276276 )
277277
278278 set_property (SOURCE tests/PythonQtTestMain.cpp PROPERTY COMPILE_DEFINITIONS "main=tests_PythonQtTestMain" )
279-
279+
280280 add_executable (PythonQtCppTests ${test_sources} )
281281 target_link_libraries (PythonQtCppTests PythonQt)
282-
282+
283283 add_test (
284284 NAME tests_PythonQtTestMain
285285 COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:PythonQtCppTests> tests/PythonQtTestMain
0 commit comments