#
SET(QWTHOME $ENV{QWTHOME})
-FIND_PATH(QWT_INCLUDE_DIR qwt_plot.h ${QWTHOME}/include)
+IF(NOT QWTHOME)
+ SET(QWTHOME /usr)
+ENDIF(NOT QWTHOME)
+
+FIND_PATH(QWT_INCLUDE_DIR qwt_plot.h PATHS ${QWTHOME}/include ${QWTHOME}/include/qwt)
SET(QWT_INCLUDES -I${QWT_INCLUDE_DIR})
IF(WINDOWS)
SET(QWT_INCLUDES ${QWT_INCLUDES} -DQWT_DLL)
ENDIF(WINDOWS)
+
IF(WINDOWS)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
FIND_LIBRARY(QWT_LIBS qwtd5 ${QWTHOME}/lib)
FIND_LIBRARY(QWT_LIBS qwt5 ${QWTHOME}/lib)
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
ELSE(WINDOWS)
-FIND_LIBRARY(QWT_LIBS qwt ${QWTHOME}/lib)
+FIND_LIBRARY(QWT_LIBS qwt PATHS ${QWTHOME}/lib ${QWTHOME}/lib64)
ENDIF(WINDOWS)