A
A
allvis2021-12-09 00:58:41
CMake
allvis, 2021-12-09 00:58:41

How to add cpplint and gtest via cmake?

I needed to download the repository and upload it using the command:

cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STD=ON -D USE_STYLE_CHECKER=ON ..

Google tests..
I will describe the essence of my actions.
in git bash:
$git clone <ссылка на репозиторий>
next:
I create in the root folder 'build'. I go in, open it through the cmd folder and before I write the command (which I threw off above) - I know that you must first install cpplint.
I download the cpplint.py file, throw it into C:\Users\pichu\AppData\Local\Programs\Python\Python310\Scripts
through this folder, open cmd and write:
pip install cpplint
Download completed. Checked with the command, issued a list of commands for this script.
I insert the command (which I dropped at the beginning) into the cmd line (according to the repository folder in build).
The process has begun. Everything loaded and in the end I got a message that cpplint was not found, and 2 more errors below:

61b12b21c3d09626670823.jpeg
61b12abbe6abc910645285.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
allvis, 2021-12-15
@allvis

Solved the problem, at the end of the command disabled the checker
cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STD=ON -D USE_STYLE_CHECKER=ON ..
on
cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STD=ON -D USE_STYLE_CHECKER=OFF..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question