### Using script cmk.sh

The script uses `cmake`. After compiling, the libraries and executables will be found in `slsDetectorPackage/build/bin` directory. Usage: [-c] [-b] [-h] [-d HDF5 directory] [-j]

- -[no option]: only make
- -c: Clean
- -b: Builds/Rebuilds CMake files normal mode
- -h: Builds/Rebuilds Cmake files with HDF5 package
- -d: HDF5 Custom Directory
- -t: Build/Rebuilds only text client
- -r: Build/Rebuilds only receiver
- -g: Build/Rebuilds only gui
- -j: Number of threads to compile through

Some example options for compilation:

Most basic option: `./cmk.sh -b`

For only make: `./cmk.sh`

For make clean;make: `./cmk.sh -c`

For using hdf5 without custom dir /blabla: `./cmk.sh -h -d /blabla`

For rebuilding cmake without hdf5: `./cmk.sh -b`

For using multiple cores to compile faster: `./cmk.sh -j9`

For rebuilding only certain parts: `./cmk.sh -tg` (only text client and gui)