forked from ProjectPhysX/FluidX3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.sh
12 lines (8 loc) · 868 Bytes
/
make.sh
1
2
3
4
5
6
7
8
9
10
11
12
# command line argument(s): device ID(s); if empty, FluidX3D will automatically choose the fastest available device(s)
mkdir -p bin # create directory for executable
rm -f ./bin/FluidX3D # prevent execution of old version if compiling fails
#g++ ./src/*.cpp -o ./bin/FluidX3D -std=c++17 -pthread -I./src/OpenCL/include -L./src/OpenCL/lib -lOpenCL -I./src/X11/include -L./src/X11/lib -lX11 # compile on Linux with X11
g++ ./src/*.cpp -o ./bin/FluidX3D -std=c++17 -pthread -I./src/OpenCL/include -L./src/OpenCL/lib -lOpenCL # compile on Linux (without X11)
#g++ ./src/*.cpp -o ./bin/FluidX3D -std=c++17 -pthread -I./src/OpenCL/include -framework OpenCL # compile on macOS (without X11)
#g++ ./src/*.cpp -o ./bin/FluidX3D -std=c++17 -pthread -I./src/OpenCL/include -L/system/vendor/lib64 -lOpenCL # compile on Android (without X11)
./bin/FluidX3D "$@" # run FluidX3D