[CMake] how to write the following comand into cmake file.

丁老师 ztdepyahoo at 163.com
Sun Jun 23 01:42:59 EDT 2013


I develop a parallel code with PETSc, it can sucessfully compiled with the following mpic++ command, but how to translate it into a cmake file. so i can further develop it in kdevelop 4.4.

mpic++ main.cpp -o main -I/home/ztdep/Downloads/petsc-3.3-p6/inc… -I/home/ztdep/Downloads/petsc-3.3-p6/arc… -Wl,-rpath,/home/ztdep/Downloads/petsc-3… -L/home/ztdep/Downloads/petsc-3.3-p6/arc… -lpetsc -lX11 -Wl,-rpath,/home/ztdep/Downloads/petsc-3… -lHYPRE -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord -lsuperlu_dist_3.1 -lparmetis -lmetis -lscalapack -lblacs -lpthread -llcg -lflapack -lfblas -lm -L/usr/lib64/gcc/x86_64-suse-linux/4.7 -L/usr/x86_64-suse-linux/lib -lmpichf90 -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpichcxx -lstdc++ -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -ldl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130623/6aa6ca2e/attachment.htm>


More information about the CMake mailing list