Building and Running the Project
To simplify the build and execution process, I created a run.sh script that automates common tasks. This script is designed to work with the Intel oneAPI toolkit and the project's CMake configuration.
Usage
| Command |
Description |
./run.sh build |
Configure and build the project (Debug mode). |
./run.sh run [args] |
Run the application, passing arguments through. |
./run.sh test [args] |
Run tests using ctest, passing arguments. |
./run.sh clean |
Remove the build directory. |
./run.sh rebuild |
Clean and rebuild the project. |
Environment Overrides
You can customize the build process using environment variables:
| Variable |
Default Value |
Description |
BUILD_DIR |
cmake-build-debug |
Specify the build directory. |
TARGET |
xl_algo_oneAPI |
Set the target executable name. |
Examples
./run.sh build
./run.sh run --help
./run.sh test -V
IDE Compatibility
If you are using CLion or another CMake-based IDE:
- The build directory created by
run.sh may not be fully compatible with the IDE's expectations.
- For best results, delete the existing build directory and load the top-level
CMakeLists.txt directly in your IDE.