[Trilinos-Users] Using find_package to compile Trilinos?
Michael Buksas
mwbuksas at lanl.gov
Tue Aug 24 08:29:18 MDT 2010
Nico,
Thanks. I was missing the part about setting Trilinos_DIR as an option
to cmake.
Mike
On 08/23/2010 05:07 PM, Nico Schlömer wrote:
> Hi Mike,
>
> CMake functionality has been added to Trilinos a while ago; you could
> use FIND_PACKAGE( Trilinos REQUIRED ).
>
> I'll attach a CMakeLists.txt along with a simple executable that does
> something around Tpetra; maybe you can use this as a template for
> whatever you do.
> Generally you may want to create the folder structure like
>
> ./source/CMakeLists.txt
> ./source/main.cpp
> ./build
>
> then cd into ./build/, and call
>
> cmake -D Trilinos_DIR:PATH=/path/to/your/trilinos/installation/
> ./source
>
> This should generate all the files necessary for building the
> executable.
>
> Cheers,
> Nico
>
>
>
>
> On Mon, 23 Aug 2010 16:10:12 -0600, "Michael Buksas"
> <mwbuksas at lanl.gov> wrote:
>> Hi everyone,
>>
>> Can I use CMake's find_package command in my own project to find
>> Trilinos? Is there a FindTrilinos.cmake file somewhere? Or, do I need to
>> point CMake to TrilinosConfig.cmake in the install directory?
>>
>> Thanks,
>> Mike Buksas
--
Michael W. Buksas
CCS-7: Applied Computer Science
Los Alamos National Laboratory
(505) 667-7580
More information about the Trilinos-Users
mailing list