-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optionally use external qwtpolar library
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15128 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
jef
committed
Feb 4, 2011
1 parent
9ddeee3
commit a965412
Showing
3 changed files
with
83 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Find QwtPolar | ||
# ~~~~~~~~ | ||
# Copyright (c) 2011, Jürgen E. Fischer <jef at norbit.de> | ||
# | ||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
# Once run this will define: | ||
# | ||
# QWTPOLAR_FOUND = system has QWTPolar lib | ||
# QWTPOLAR_LIBRARY = full path to the QWTPolar library | ||
# QWTPOLAR_INCLUDE_DIR = where to find headers | ||
# | ||
|
||
|
||
#MESSAGE("Searching for QWTPolar") | ||
FIND_PATH(QWTPOLAR_INCLUDE_DIR NAMES qwt_polar.h PATHS | ||
/usr/include | ||
/usr/local/include | ||
"$ENV{LIB_DIR}/include" | ||
"$ENV{INCLUDE}" | ||
PATH_SUFFIXES qwt-qt4 qwt qwt5 | ||
) | ||
|
||
FIND_LIBRARY(QWTPOLAR_LIBRARY NAMES qwtpolar PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
"$ENV{LIB_DIR}/lib" | ||
"$ENV{LIB}/lib" | ||
) | ||
|
||
IF (QWTPOLAR_INCLUDE_DIR AND QWTPOLAR_LIBRARY) | ||
SET(QWTPOLAR_FOUND TRUE) | ||
ENDIF (QWTPOLAR_INCLUDE_DIR AND QWTPOLAR_LIBRARY) | ||
|
||
IF (QWTPOLAR_FOUND) | ||
IF (NOT QWTPOLAR_FIND_QUIETLY) | ||
MESSAGE(STATUS "Found QWTPolar: ${QWTPOLAR_LIBRARY}") | ||
ENDIF (NOT QWTPOLAR_FIND_QUIETLY) | ||
ELSE (QWTPOLAR_FOUND) | ||
IF (QWTPOLAR_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find QWTPolar") | ||
ENDIF (QWTPOLAR_FIND_REQUIRED) | ||
ENDIF (QWTPOLAR_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters