-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindVQwt.cmake
36 lines (26 loc) · 975 Bytes
/
FindVQwt.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: FindVGLEW.cmake 21620 2011-05-30 10:28:48Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VQWT_FOUND )
vista_find_package_root( Qwt include/qwt.h )
if( QWT_ROOT_DIR )
find_library( QWT_LIBRARIES_OPT NAMES qwt
PATHS ${QWT_ROOT_DIR}/lib
CACHE "Qwt library" )
find_library( QWT_LIBRARIES_DBG NAMES qwtd
PATHS ${QWT_ROOT_DIR}/lib
CACHE "Qwt library" )
if(QWT_LIBRARIES_DBG)
set( QWT_LIBRARIES
optimized ${QWT_LIBRARIES_OPT}
debug ${QWT_LIBRARIES_DBG} )
else(QWT_LIBRARIES_DBG)
set( QWT_LIBRARIES
${QWT_LIBRARIES_OPT} )
endif(QWT_LIBRARIES_DBG)
set( QWT_INCLUDE_DIRS ${QWT_ROOT_DIR}/include )
set( QWT_LIBRARY_DIRS ${QWT_ROOT_DIR}/lib )
get_filename_component( QWT_LIBRARY_DIRS ${QWT_LIBRARIES_OPT} PATH )
endif( QWT_ROOT_DIR )
endif( NOT VQWT_FOUND )
find_package_handle_standard_args( VQWT "Qwt could not be found" QWT_ROOT_DIR )