@ -5,15 +5,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# S t o l e n s h a m e l e s s l y f r o m P y H S P l a s m a
# S t o l e n s h a m e l e s s l y f r o m P y H S P l a s m a
find_package ( PythonLibs REQUIRED )
find_package ( PythonLibs REQUIRED )
# U s e o n l y t h e m a j o r . m i n o r v e r s i o n - - n o p a t c h , n o + , e t c
find_package ( PythonInterp "3.5" REQUIRED )
STRING ( REGEX REPLACE "([0-9]\\.[0-9])[0-9.+]*" "\\1" PYTHONLIBS_VERSION_STRING_FILTERED "${PYTHONLIBS_VERSION_STRING}" )
find_package ( PythonInterp "${PYTHONLIBS_VERSION_STRING_FILTERED}" REQUIRED )
# m a k e s u r e t h e v e r s i o n s m a t c h
STRING ( REGEX REPLACE "([0-9]\\.[0-9])[0-9.+]*" "\\1" PYTHON_VERSION_STRING_FILTERED "${PYTHON_VERSION_STRING}" )
if ( NOT "${PYTHONLIBS_VERSION_STRING_FILTERED}" STREQUAL "${PYTHON_VERSION_STRING_FILTERED}" )
message ( FATAL_ERROR "Versions of Python libraries (${PYTHONLIBS_VERSION_STRING_FILTERED}) and Python interpreter (${PYTHON_VERSION_STRING_FILTERED}) do not match. Please configure the paths manually." )
endif ( )
find_package ( HSPlasma REQUIRED )
find_package ( HSPlasma REQUIRED )
find_package ( Ogg REQUIRED )
find_package ( Ogg REQUIRED )
find_package ( OpenGL REQUIRED )
find_package ( OpenGL REQUIRED )