g++ - Issue with link library when compiling with cmake -


i can compile cpp file g++ using command:

g++ test.cpp -lmpfr -lgmp 

how add these libraries cmakelists.txt compile cmake?

it recommend go through cmake tutorial, "adding library (step 2)" , target_link_libraries documentation.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -