That’s exactly what I have been doing, and I can compile the application with CMake, however, I was told that linking to all the libraries resulting from $LIBMESH_DIR/bin/libmesh-config —libs might be unnecessary and slow, as I explained below. I suppose that I should find a way within CMake to do what libtool does in the linking so not all libraries are used.
Miguel From: John Peterson <[email protected]<mailto:[email protected]>> Date: Friday, April 1, 2016 at 11:02 AM To: Miguel Salazar <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [Libmesh-users] Linking application to libMesh On Fri, Apr 1, 2016 at 11:56 AM, Salazar De Troya, Miguel <[email protected]<mailto:[email protected]>> wrote: Thanks. The reason why I am asking this is that I am trying to build my libMesh application using CMake. Has anybody had experience with libMesh+CMake? I do not, but it should be pretty straightforward. Your best bet is to use the $LIBMESH_DIR/bin/libmesh-config script that libmesh installs, and pass the output of e.g libmesh-config --libs to cmake where necessary. cmake itself should handle the other intricacies of linking dynamic libs depending on the platform you're on. -- John ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
