Отдельная переменная для mgl-qt5

This commit is contained in:
Andrei Astafev 2019-09-30 23:45:09 +03:00
parent 06a47f15a5
commit 862acd75f7

View File

@ -8,7 +8,7 @@ find_path(MATHGL_INCLUDE_DIR NAMES mgl2/mgl.h
/usr/local/include
)
find_library(MATHGL_LIBRARIES NAMES mgl mgl-qt5
find_library(MATHGL_LIBRARIES NAMES mgl mgl
PATHS
${MPFR_PREFIX}/lib
/opt/local/include
@ -16,6 +16,13 @@ find_library(MATHGL_LIBRARIES NAMES mgl mgl-qt5
/usr/local/include
)
find_library(MATHGL_QT5_LIBRARIES NAMES mgl-qt5
PATHS
${MPFR_PREFIX}/lib
/opt/local/include
/usr/include
/usr/local/include
)
if(MATHGL_INCLUDE_DIR AND MATHGL_LIBRARIES)
get_filename_component(MATHGL_LIBRARY_DIR ${MATHGL_LIBRARIES} PATH)