Re: [CMake] Eclipse project and MKL libraries

2012-05-02 Thread Giovanni Azua
Hi Eric,Thank you, it is solved now. I got working Eclipse project in Mac OS X and Ubuntu 12.04.On Apr 30, 2012, at 3:30 PM, Eric Noulard wrote:Did you try starting eclipse from the same command line (in order tomake eclipse inherit the environment setup you have in that commandline) and compiling

Re: [CMake] Eclipse project and MKL libraries

2012-04-28 Thread Giovanni Azua
On Apr 28, 2012, at 8:56 AM, Eric Noulard wrote: target_link_libraries(benchmark ${MKL_LIBRARIES}) I cannot ensure this is OK because the FindMKL.cmake module does not seem to be in CMake source. Thank you! this solved the compilation issue in Mac OS X still a progress :) but not in

Re: [CMake] Eclipse project and MKL libraries

2012-04-28 Thread Giovanni Azua
Hi HS, On Apr 28, 2012, at 6:49 PM, Hendrik Sattler wrote: I get the following error trying to debug/execute: dyld: Library not loaded: libmkl_rt.dylib Referenced from: /Users/bravegag/code/fastcode_project/build_debug/test_matrix Reason: image not found .dylib on Ubuntu? Shouldn't that

[CMake] Eclipse project and MKL libraries

2012-04-27 Thread Giovanni Azua
Hello, I generate an Eclipse project from cmake using the command (I made the build directory sibling of my code directory): cmake -G Eclipse CDT4 - Unix Makefiles ../code I'm unable to run or debug the different targets from Eclipse. I get the following linking error, even though it compiles

Re: [CMake] Eclipse project and MKL libraries

2012-04-27 Thread Giovanni Azua
Hello Eric, Thanks for your answer. On Apr 27, 2012, at 10:44 PM, Eric Noulard wrote: What do you mean executes just fine from the command line? I mean that I can build all the targets in command line without problem and execute them without any problems. Linking CXX executable benchmark

Re: [CMake] FortranCInterface generating header correctly?

2012-03-22 Thread Giovanni Azua
Hi Michael, Thank you, I understand now :) it works for me. Thanks a lot. Best regards, Giovanni On Mar 21, 2012, at 6:01 PM, Michael Wild wrote: Hi Giovanni I think you misunderstand what FortranCInterface.cmake does. It doesn *not* generate signatures, it only generates macros to handle

[CMake] C++ project structure best practices

2012-03-22 Thread Giovanni Azua
Hello, I'm used to Maven where I create a new archetype (mvn archetype:generate) and the conventional project structure is created for me. I will be creating a relatively large C++ project and would like it to start it using CMake best practices ... how can I do that? Would buying the

[CMake] FortranCInterface generating header correctly?

2012-03-21 Thread Giovanni Azua
Hello, I have a project for which the main language is C (soon CPP) that calls some functions from Intel MKL. I have the need to use four third-party high performance fortran routines and I need to: 1) be able to call these Fortran routines from my C code 2) Automatically generate C headers I