use cmake everywhere for desktop build, fix build warnings

This commit is contained in:
Jeff Wang
2019-11-14 02:40:07 -05:00
parent f25a71b74c
commit f70510e46a
7 changed files with 32 additions and 12 deletions

View File

@ -0,0 +1,9 @@
add_executable(div div_mfp.cpp)
target_link_libraries(div gmp)
add_executable(ln ln_mfp.cpp)
target_link_libraries(ln mpfr)
add_executable(exp exp.cpp)
target_link_libraries(exp mpfr)

View File

@ -1,10 +0,0 @@
all: div ln exp
div: div_mfp.cpp
g++ -Wall div_mfp.cpp -o div -lgmp
ln: ln_mfp.cpp
g++ -Wall ln_mfp.cpp -o ln -lmpfr
exp: exp.cpp
g++ -Wall exp.cpp -o exp -lmpfr