This PR adds cmake build system. Currently you need to install CoreIR in system's root folder in order to compile the mapper. This PR introduces FindCoreIR to cmake to allow build system to automatically detect the CoreIR build.
Usage:
$ mkdir build && cd build
$ cmake .. -DCOREIR_DIR=${absolute_path_of_core_ir}$
$ make -j
It will produce cgra-mapper in the bin folder as before. If you have $COREIR_DIR set in your env, the script will automatically reads it so you can skip the flag passing to cmake.
@rdaly525 Per our discussion today, I will block this PR until CoreIR uses a build system (cmake I suppose?) so that I can use it directly in the mapper without custom handcrafted cmake find.
This PR adds
cmake
build system. Currently you need to install CoreIR in system's root folder in order to compile the mapper. This PR introducesFindCoreIR
to cmake to allow build system to automatically detect the CoreIR build.Usage:
It will produce
cgra-mapper
in thebin
folder as before. If you have$COREIR_DIR
set in yourenv
, the script will automatically reads it so you can skip the flag passing tocmake
.