StanfordAHA / CGRAMapper

CoreIR based mapping tool for CGRA
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

switch to cmake build system #71

Closed Kuree closed 5 years ago

Kuree commented 6 years ago

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.

Kuree commented 6 years ago

@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.