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

罗勇刚(Yonggang Luo) luoyonggang at gmail.com
Mon Jun 24 21:41:02 EDT 2013


I don't know what do you want to do?
It's seems mpic++ didn't support by mpic++.

2013/6/24 丁老师 <ztdepyahoo at 163.com>:
> 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
>
>
>
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake



-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo


More information about the CMake mailing list