Use specialized small part of monetdb library as you desired
- Firstly install dependencies and build monetdb:
sudo apt install bison flex
sudo apt install pkg-config
cd MonetDB
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=. ..
cmake --build . -j
cmake --build . --target install
- Then, write your code to test.c and build out-of-tree:
cd customizable-monetdb
mkdir build
cd build
cmake -DMONETDB_PROJECT_DIR=../MonetDB -DMONETDB_BUILD_DIR=../MonetDB/build ..
cmake --build . ## dont use -j here because of race condition
- You can run created test executable in your build/bin directory:
cd bin
./test