### HOWTO ### 
### you need to have SDL2 compiled in /usr/local ### 
### if SDL2 is in other location - fix CMakeLists.txt 

mkdir build 


cmake .. \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_COMPILER=clang \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_OSX_ARCHITECTURES=arm64 \
  -DCMAKE_C_FLAGS="-DLINUX -D_FILE_OFFSET_BITS=64 -D_DARWIN_C_SOURCE" \
  -DCMAKE_CXX_FLAGS="-DLINUX -D_FILE_OFFSET_BITS=64 -D_DARWIN_C_SOURCE" 

make 


### you should have mmbasic binary in path 

# Then in the source code allwasy define GRAPHICS VARIABLES 

# GRAPHICS WINDOW 0,640,480 
# GRAPHICS WRITE 0 



> PRINT MM.INFO(ARCH)
macOS arm64

> PRINT MM.INFO(DEVICE)
MMB4L

> PRINT MM.INFO(VERSION)
 70010000

> PRINT MM.INFO$(CURRENT) 
/Users/user/SRC/mmb4l/build/test.bas
