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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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