Build the Project with CMake
Navigate to a source code folder.
Configure the build:
Makefile
,.sln
, etc.mkdir build && cd build cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON -D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON -D CMAKE_BUILD_TYPE=Release ..
Help on CMake keys:
-D USE_SEQ=ON
enableSequential
labs (based on OpenMP’s CMakeLists.txt).-D USE_MPI=ON
enableMPI
labs.-D USE_OMP=ON
enableOpenMP
labs.-D USE_TBB=ON
enableTBB
labs.-D USE_STL=ON
enablestd::thread
labs.-D USE_FUNC_TESTS=ON
enable functional tests.-D USE_PERF_TESTS=ON
enable performance tests.-D CMAKE_BUILD_TYPE=Release
required parameter for stable work of repo.
A corresponding flag can be omitted if it’s not needed.
Build the project:
cmake --build . --config Release --parallel
Check the task:
Run
<project's folder>/build/bin