Add build docs for mac
parent
6bd08068b2
commit
2d3cdd8f60
17
README.md
17
README.md
|
@ -1,16 +1,3 @@
|
||||||
WIP...
|
WIP... COMMING SOON
|
||||||
|
|
||||||
Build
|
http://dust3d.readthedocs.io/
|
||||||
--------
|
|
||||||
Mac
|
|
||||||
```
|
|
||||||
$ qmake -spec macx-xcode
|
|
||||||
```
|
|
||||||
|
|
||||||
Windows
|
|
||||||
```
|
|
||||||
From Start Menu, Open Visual Studio 2017 Tools Command Prompt:
|
|
||||||
C:\Program Files\Microsoft Visual Studio\2017\Community>cd C:\Users\IEUser\Desktop\dust3d
|
|
||||||
C:\Users\IEUser\Desktop\dust3d>qmake DEFINES+=BOOST_INCLUDEDIR=C:\dev\boost_1_55_0\boost_1_55_0 DEFINES+=CGAL_DIR=C:\dev\CGAL-4.11.1
|
|
||||||
C:\Users\IEUser\Desktop\dust3d>nmake -f Makefile.Release
|
|
||||||
```
|
|
|
@ -10,6 +10,7 @@ Welcome to dust3d's documentation!
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
:caption: Contents:
|
:caption: Contents:
|
||||||
|
|
||||||
|
builds
|
||||||
shortcuts
|
shortcuts
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
|
|
37
dust3d.pro
37
dust3d.pro
|
@ -2,17 +2,6 @@ QT += core widgets opengl
|
||||||
CONFIG += release
|
CONFIG += release
|
||||||
RESOURCES += resources.qrc
|
RESOURCES += resources.qrc
|
||||||
|
|
||||||
BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR)
|
|
||||||
CGAL_DIR = $$(CGAL_DIR)
|
|
||||||
|
|
||||||
isEmpty(BOOST_INCLUDEDIR) {
|
|
||||||
error("No BOOST_INCLUDEDIR define found in enviroment variables")
|
|
||||||
}
|
|
||||||
|
|
||||||
isEmpty(CGAL_DIR) {
|
|
||||||
error("No CGAL_DIR define found in enviroment variables")
|
|
||||||
}
|
|
||||||
|
|
||||||
HUMAN_VERSION = "0.0-alpha1"
|
HUMAN_VERSION = "0.0-alpha1"
|
||||||
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"
|
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"
|
||||||
ISSUES_URL = "https://github.com/huxingyi/dust3d/issues"
|
ISSUES_URL = "https://github.com/huxingyi/dust3d/issues"
|
||||||
|
@ -97,6 +86,17 @@ SOURCES += src/main.cpp
|
||||||
HEADERS += src/version.h
|
HEADERS += src/version.h
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR)
|
||||||
|
CGAL_DIR = $$(CGAL_DIR)
|
||||||
|
|
||||||
|
isEmpty(BOOST_INCLUDEDIR) {
|
||||||
|
error("No BOOST_INCLUDEDIR define found in enviroment variables")
|
||||||
|
}
|
||||||
|
|
||||||
|
isEmpty(CGAL_DIR) {
|
||||||
|
error("No CGAL_DIR define found in enviroment variables")
|
||||||
|
}
|
||||||
|
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
MESHLITE_DIR = thirdparty/meshlite/meshlite_unstable_vc14_x64
|
MESHLITE_DIR = thirdparty/meshlite/meshlite_unstable_vc14_x64
|
||||||
} else {
|
} else {
|
||||||
|
@ -121,13 +121,14 @@ unix {
|
||||||
GMP_LIBNAME = gmp
|
GMP_LIBNAME = gmp
|
||||||
MPFR_LIBNAME = mpfr
|
MPFR_LIBNAME = mpfr
|
||||||
CGAL_LIBNAME = cgal
|
CGAL_LIBNAME = cgal
|
||||||
CGAL_INCLUDEDIR = $$CGAL_DIR/include
|
BOOST_INCLUDEDIR = /usr/local/opt/boost/include
|
||||||
CGAL_BUILDINCLUDEDIR = $$CGAL_DIR/build/include
|
CGAL_INCLUDEDIR = /usr/local/opt/cgal/include
|
||||||
CGAL_LIBDIR = $$CGAL_DIR/build/lib
|
CGAL_BUILDINCLUDEDIR = /usr/local/opt/cgal/include
|
||||||
GMP_INCLUDEDIR = $$CGAL_DIR/auxiliary/gmp/include
|
CGAL_LIBDIR = /usr/local/opt/cgal/lib
|
||||||
GMP_LIBDIR = $$CGAL_DIR/auxiliary/gmp/lib
|
GMP_INCLUDEDIR = /usr/local/opt/gmp/include
|
||||||
MPFR_INCLUDEDIR = $$GMP_INCLUDEDIR
|
GMP_LIBDIR = /usr/local/opt/gmp/lib
|
||||||
MPFR_LIBDIR = $$GMP_LIBDIR
|
MPFR_INCLUDEDIR = /usr/local/opt/mpfr/include
|
||||||
|
MPFR_LIBDIR = /usr/local/opt/mpfr/lib
|
||||||
}
|
}
|
||||||
|
|
||||||
INCLUDEPATH += $$MESHLITE_DIR
|
INCLUDEPATH += $$MESHLITE_DIR
|
||||||
|
|
Loading…
Reference in New Issue