Results 1 to 3 of 3

Thread: how to write this in cmake file.

  1. #1

    Default how to write this in cmake file.

    Dear friends:
    I write a parallel program with the PETSc, it can compiled sucessfully with the following command. could you please help me to translate it into a cmake file. so i can further develop the code in kdevelop4.4.

    mpic++ main.cpp -o main -I/home/ztdep/Downloads/petsc-3.3-p6/include -I/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/include -Wl,-rpath,/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib -L/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib -lpetsc -lX11 -Wl,-rpath,/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib -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

  2. #2
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: how to write this in cmake file.

    Your code isn't readable as it's presented. Try wrapping it in CODE tags. You also might get a better answer in the Programming & Scripting forum than you'll get here.

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,240

    Default Re: how to write this in cmake file.

    Quote Originally Posted by chief_sealth View Post
    Your code isn't readable as it's presented. Try wrapping it in CODE tags. You also might get a better answer in the Programming & Scripting forum than you'll get here.
    Both trypicaly my idea.

    Would you like me to move this to the Programming/scripting subforum?
    (Remember that double posting is not favoured here).
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •