Compilation - glozanoa/adas GitHub Wiki

To compile adas' examples you should have installed CMake.

I suppose that you are in the root of adas repository.

mkdir build && cd build
# If your OS is windows, then run instead: cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug --log-level=debug ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_COMPILER_WALL=OFF --log-level=debug .. 
# You will have an output like this
... MORE OUTPUT
-- Multi-thread algorithm examples labels
-- Adding mt_max_element executable
-- Adding mt_min_element executable
... MORE OUTPUT
-- Serial algorithms examples labels
-- Adding max_element executable
-- Adding min_element executable
... MORE OUTPUT
-- Benchmark tests labels
-- Adding bm_bibubble executable
-- Adding bm_bubble executable
-- Adding bm_insertion executable
-- Adding bm_selection executable
... MORE OUTPUT

As you can see the below output, it list some tags to compile with make to generate executables. For example to compile bm_bibubble you run simply:

# If your OS is windows, then run instead: mingw32-make.exe bm_bibubble
make bm_bibubble

And a executable file bm_bibbuble will be create inside the test directory. If you prefer compile all the tags you will run make all.

NOTE:
If you are a windows user, I suggest make an alias for make command, as follow:

Set-Alias -Name make -Value mingw32-make.exe

So you can now use make instead of mingw32-make.exe.