File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,14 @@ if(QCA_INCLUDE_DIR AND QCA_LIBRARY)
2020
2121else (QCA_INCLUDE_DIR AND QCA_LIBRARY )
2222
23+ if (ENABLE_QT5)
24+ set (QCA_LIBRARY_NAMES qca-qt5 qca2-qt5)
25+ else (ENABLE_QT5 )
26+ set (QCA_LIBRARY_NAMES qca qca2)
27+ endif (ENABLE_QT5 )
28+
2329 find_library (QCA_LIBRARY
24- NAMES qca qca2
30+ NAMES ${QCA_LIBRARY_NAMES}
2531 PATHS
2632 ${LIB_DIR}
2733 $ENV{LIB}
Original file line number Diff line number Diff line change @@ -32,13 +32,19 @@ ELSE(EXISTS QSCINTILLA_VERSION_STR)
3232 /usr/include
3333 )
3434
35- FIND_LIBRARY (QSCINTILLA_LIBRARY
36- NAMES qscintilla2 libqscintilla2 libqscintilla2.dylib
35+ if (ENABLE_QT5)
36+ set (QSCINTILLA_LIBRARY_NAMES qscintilla2-qt5 libqscintilla2-qt5 libqscintilla2-qt5.dylib)
37+ else (ENABLE_QT5 )
38+ set (QSCINTILLA_LIBRARY_NAMES qscintilla2 libqscintilla2 libqscintilla2.dylib)
39+ endif (ENABLE_QT5 )
40+
41+ find_library (QSCINTILLA_LIBRARY
42+ NAMES ${QSCINTILLA_LIBRARY_NAMES}
3743 PATHS
3844 "${QT_LIBRARY_DIR} "
3945 /usr/local/lib
4046 /usr/lib
41- )
47+ )
4248
4349 IF (QSCINTILLA_LIBRARY AND QSCINTILLA_INCLUDE_DIR)
4450 SET (QSCINTILLA_FOUND TRUE )
Original file line number Diff line number Diff line change 44# Redistribution and use is allowed according to the terms of the BSD license.
55# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
66#
7- # Once run this will define:
8- #
7+ # Once run this will define:
8+ #
99# QWT_FOUND = system has QWT lib
1010# QWT_LIBRARY = full path to the QWT library
11- # QWT_INCLUDE_DIR = where to find headers
11+ # QWT_INCLUDE_DIR = where to find headers
1212#
1313
1414
1515FIND_PATH (QWT_INCLUDE_DIR NAMES qwt.h PATHS
1616 /usr/include
1717 /usr/local/include
18- "$ENV{LIB_DIR} /include"
19- "$ENV{INCLUDE} "
18+ "$ENV{LIB_DIR} /include"
19+ "$ENV{INCLUDE} "
2020 PATH_SUFFIXES qwt-qt4 qwt qwt5 qwt6
2121 )
2222
23- FIND_LIBRARY (QWT_LIBRARY NAMES qwt qwt5 qwt6 qwt-qt4 qwt5-qt4 qwt6-qt4 PATHS
24- /usr/lib
25- /usr/local/lib
26- "$ENV{LIB_DIR} /lib"
27- "$ENV{LIB} "
28- )
23+ if (ENABLE_QT5)
24+ set (QWT_LIBRARY_NAMES qwt-qt5 qwt6-qt5)
25+ else (ENABLE_QT5 )
26+ set (QWT_LIBRARY_NAMES qwt qwt6 qwt5 qwt-qt4 qwt6-qt4 qwt5-qt4)
27+ endif (ENABLE_QT5 )
28+
29+ find_library (QWT_LIBRARY
30+ NAMES ${QWT_LIBRARY_NAMES}
31+ PATHS
32+ /usr/lib
33+ /usr/local/lib
34+ "$ENV{LIB_DIR} /lib"
35+ "$ENV{LIB} "
36+ )
2937
3038IF (QWT_INCLUDE_DIR AND QWT_LIBRARY)
3139 SET (QWT_FOUND TRUE )
You can’t perform that action at this time.
0 commit comments