]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Tue, 21 Feb 2012 12:58:27 +0000 (12:58 +0000)
committeradam <adam>
Tue, 21 Feb 2012 12:58:27 +0000 (12:58 +0000)
adm_local/cmake_files/FindQWT.cmake

index f80fc96f6e523ec7d4aeda00b9c836c286134788..4c008cc5ac498c80560e3c3ab0efe02803664fe7 100644 (file)
 #
 
 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)
@@ -30,5 +35,5 @@ ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
 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)