Errors while building with QWT
I get an error undefined reference to `QwtPlot::QwtPlot(QWidget*)' when I try to build my project even though everything seems fine in the setup. In my CmakeLists.txt I have include_directories( [...] ${QWT_INCLUDE_DIR}) which points to where I have my Qwt headers and find_package(Qwt REQUIRED) works because QWT_FOUND is set to True Here's my FindQwt.cmake: #MESSAGE("Searching for QWT") FIND_PATH(QWT_INCLUDE_DIR NAMES qwt.h PATHS /usr/include /usr/local/include "$ENV{LIB_DIR}/include" "$ENV{INCLUDE}" PATH_SUFFIXES qwt-qt4 qwt ) FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwt5 qwt-qt4 qwt5-qt4 PATHS