~librecad-dev/librecad/librecad

« back to all changes in this revision

Viewing changes to librecad/src/muparser.pri

  • Committer: Scott Howard
  • Date: 2014-02-21 19:07:55 UTC
  • Revision ID: showard@debian.org-20140221190755-csjax9wb146hgdq4
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
unix {
 
3
 
 
4
    CONFIG += link_pkgconfig
 
5
    PKGCONFIG += muparser
 
6
 
 
7
}
 
8
 
 
9
win32 {
 
10
 
 
11
    isEmpty( MUPARSER_DIR) {
 
12
        # MUPARSER_DIR was not set in custom.pro
 
13
        MUPARSER_DIR = /muparser/muparser_v2_2_3
 
14
    }
 
15
    !exists("$$MUPARSER_DIR") {
 
16
        # check env for MUPARSER_DIR
 
17
        exists("$$(MUPARSER_DIR)"){
 
18
            MUPARSER_DIR = "$$(MUPARSER_DIR)"
 
19
        }
 
20
    }
 
21
 
 
22
    exists("$$MUPARSER_DIR"){
 
23
        INCLUDEPATH += "$${MUPARSER_DIR}/include"
 
24
        LIBS += -L"$${MUPARSER_DIR}/lib" -lmuparser
 
25
        message("Using muParser libraries from $${MUPARSER_DIR}.")
 
26
    } else {
 
27
        message("muParser was not found in $${MUPARSER_DIR}, please install muParser or check settings in custom.pro!")
 
28
    }
 
29
 
 
30
}
 
31