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

android - questions about switching from C2DM to GCM -

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

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -