Skip to content

Commit

Permalink
Include gmp and mpfr in macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
GilesBathgate committed Jul 20, 2024
1 parent c5b59fb commit 81b17e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rapcad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ jobs:
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
echo "BOOST_ROOT=$(brew --prefix boost)" >> $GITHUB_ENV
echo "CGAL_DIR=$(brew --prefix cgal)" >> $GITHUB_ENV
echo "GMP=$(brew --prefix gmp)" >> $GITHUB_ENV
echo "MPFR=$(brew --prefix mpfr)" >> $GITHUB_ENV
- name: Configure
run: |
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
Expand Down
4 changes: 4 additions & 0 deletions rapcad.pro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ win32 {
macx {
ICON = icons/AppIcon.icns
INCLUDEPATH += $$(CGAL_DIR)/include
INCLUDEPATH += $$(GMP)/include
INCLUDEPATH += $$(MPFR)/include
INCLUDEPATH += $$(BOOST_ROOT)/include
LIBS += -L$$(GMP)/lib
LIBS += -L$$(MPFR)/lib
exists( /usr/local/lib/libCGAL* ) {
LIBS += -lCGAL -lCGAL_Core
}
Expand Down
2 changes: 2 additions & 0 deletions src/decimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#ifdef USE_CGAL
#include "cgal.h"
#include <gmp.h>
#include <mpfr.h>
#endif
#include <QString>

Expand Down

0 comments on commit 81b17e2

Please sign in to comment.