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

python - argument must be rect style object - Pygame -

c++ - Qt setGeometry: Unable to set geometry -

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