|
1 年之前 | |
---|---|---|
src | 2 年之前 | |
CMakeLists.txt | 1 年之前 | |
README.md | 1 年之前 |
Stand-alone version of the official VEX parser.
Uses cmake
to figure out your system and create makefiles. Needs bison,
flex and a C compiler.
In the following, assume ${MYVEX}
expands to the directory where this file
(README.md) is located. Thus ${MYVEX}/README.md
== the file you’re now
reading.
Create a directory where you will build for the desired system + installation location:
$> mkdir /path/to/build
$> cd /path/to/build
Now ask cmake to set up, passing in options a la cmake ("-DXXX=YYYY”):
$> cmake -DCMAKE_INSTALL_PREFIX=/myvex/install/dir ${MYVEX}
If your system is all ok, you can now do:
$> make
to build the system, or, when feeling bold:
$> make install
to build+install in one go.
make install
will install the following files:
${CMAKE_INSTALL_PREFIX}/lib/libvex.a
${CMAKE_INSTALL_PREFIX}/include/vex.h
... /vex++.h (for C++ code)
... /vex_parser.h