@ -9,12 +9,19 @@ if(NOT PYTHONLIBS_FOUND)
message ( FATAL_ERROR "error: Python is required to build PythonQt" )
endif ( )
# C u t X . Y [ . Z ] d o w n t o j u s t X . Y
string ( REGEX REPLACE
" ^ ( [ 0 - 9 ] [ 0 - 9 ] * ) \ . ( [ 0 - 9 ] [ 0 - 9 ] * ) "
" \ \ 1 "
PY T H O N L I B S _ M A J M I N
" \ \ 1 .\ \ 2 @ "
_ PY T H O N L I B S _ M A J M I N
$ { P Y T H O N L I B S _ V E R S I O N _ S T R I N G }
)
string ( REGEX REPLACE
" @ . * "
" "
P Y T H O N L I B S _ M A J M I N
$ { _ P Y T H O N L I B S _ M A J M I N }
)
if ( NOT EXISTS "${PYTHONQT_INSTALL_DIR}" )
find_path ( PYTHONQT_INSTALL_DIR include/PythonQt/PythonQt.h DOC "Directory where PythonQt was installed." )
@ -30,7 +37,7 @@ find_path(PYTHONQT_INCLUDE_DIR PythonQt.h
D O C " P a t h t o t h e P y t h o n Q t i n c l u d e d i r e c t o r y " )
if ( NOT PythonQt_FIND_QUIETLY )
message ( STATUS "Searching for PythonQt (Python ${PYTHONLIBS_MAJMIN}) .." )
message ( STATUS "Searching for PythonQt (Python Libs ${PYTHONLIBS_MAJMIN}) .." )
if ( PYTHONQT_INCLUDE_DIR )
message ( STATUS " .. found include ${PYTHONQT_INCLUDE_DIR}" )
endif ( )
@ -99,8 +106,12 @@ if(PYTHONQT_QTALL_LIBRARY_DEBUG)
endif ( )
if ( NOT PythonQt_FIND_QUIETLY )
message ( STATUS " .. found library ${PYTHONQT_LIBRARY}" )
message ( STATUS " .. found qtall ${PYTHONQT_QTALL_LIBRARY}" )
if ( PYTHONQT_LIBRARY )
message ( STATUS " .. found library ${PYTHONQT_LIBRARY}" )
endif ( )
if ( PYTHONQT_QTALL_LIBRARY )
message ( STATUS " .. found qtall ${PYTHONQT_QTALL_LIBRARY}" )
endif ( )
endif ( )