Re: [CMake] Intel compilers with Visual Studio Project on Windows

2013-03-01 Thread Nicholas Kinar
On 01/03/2013 4:44 AM, Hendrik Sattler wrote: Am 2013-03-01 02:32, schrieb Nicholas Kinar: Hello, I am wondering if there is a way to have Cmake use Intel compilers on Windows when generating a Visual Studio project file. Searching around the Internet, I found that the following might be used

[CMake] FindBlas and header file blas.h

2013-03-01 Thread Nicholas Kinar
Hello, On Ubuntu 12.04, I am compiling some third-party program code that #includes the BLAS header file blas.h. Although Cmake does find the BLAS and LAPACK libraries, I receive the following gcc compiler error: fatal error: blas.h: No such file or directory I've tried to change this

Re: [CMake] FindBlas and header file blas.h

2013-03-01 Thread Nicholas Kinar
On 01/03/2013 11:43 AM, Tim Gallagher wrote: Have you installed the development package for blas and lapack? Typically distributions have a library-only package and then a development package that includes the headers. Check for libblas-dev in Ubuntu. Tim Thanks, Tim; yes, I can verify

Re: [CMake] FindBlas and header file blas.h

2013-03-01 Thread Nicholas Kinar
On 01/03/2013 11:57 AM, Nicholas Kinar wrote: Moreover, running Cmake (via make compilation) tells me that the files are found; however, the blas.h header file is not found. nkinar@Betty:/media/RESEARCH/DEVELOP-SEISMIC/dip$ make -- A library with BLAS API found. -- A library with BLAS API

Re: [CMake] FindBlas and header file blas.h

2013-03-01 Thread Nicholas Kinar
On 01/03/2013 11:57 AM, Nicholas Kinar wrote: Moreover, running Cmake (via make compilation) tells me that the files are found; however, the blas.h header file is not found. nkinar@Betty:/media/RESEARCH/DEVELOP-SEISMIC/dip$ make -- A library with BLAS API found. -- A library with BLAS API

Re: [CMake] FindBlas and header file blas.h

2013-03-01 Thread Nicholas Kinar
- From: Tim Gallagher tim.gallag...@gatech.edu To: Nicholas Kinar n.ki...@usask.ca Cc: cmake@cmake.org Sent: Friday, March 1, 2013 1:06:34 PM Subject: Re: [CMake] FindBlas and header file blas.h And have you tried printing out the value of BLAS_INCLUDE_DIR? I'm not sure that actually exists, I

[CMake] Intel compilers with Visual Studio Project on Windows

2013-02-28 Thread Nicholas Kinar
Hello, I am wondering if there is a way to have Cmake use Intel compilers on Windows when generating a Visual Studio project file. Searching around the Internet, I found that the following might be used to do this within the CMakeLists.txt file: set_target_properties(inv_spline_interp

Re: [CMake] Using find_program() command to search in only one given directory

2010-09-02 Thread Nicholas Kinar
find_program(CONFIG_EXECUTABLE NAMES my-config PATHS ${CONFIG_EXECUTABLE_PATH} NO_DEFAULT_PATH) Looks good, should work. Alternately, must I simply set the path to the program using the following command? set(CONFIG_EXECUTABLE, ${CONFIG_EXECUTABLE_PATH}/my-config) You can do that too. You

[CMake] Using find_program() command to search in only one given directory

2010-09-01 Thread Nicholas Kinar
Hello, Suppose that I have a program (named my-config) that is on the *NIX system path, and I have another version of the program (also named my-config) in a sub-folder of the HOME directory. How would I use the find_program() command to determine if the program exists, given the search

[CMake] Undefined symbols when header file with code is included

2010-08-27 Thread Nicholas Kinar
Hello, Since I often use a number of C++ helper functions for my daily programming tasks, I've written a header file (my_util.h) which is then included into a source file (i.e. model.cpp). All helper function code is contained within the header file, and there is not a corresponding

Re: [CMake] Undefined symbols when header file with code is included

2010-08-27 Thread Nicholas Kinar
I believe that this should be sufficient to let CMake know that my header file is in this particular directory, but when I run the generated makefile, I receive the following error: Undefined symbols: void util::load_matrixdouble(std::basic_stringchar, std::char_traitschar,

Re: [CMake] Undefined symbols when header file with code is included

2010-08-27 Thread Nicholas Kinar
My mistake; linking with code contained in a header file actually works quite well in CMake. Just as the error says, the problem was due to an undefined symbol. In the file my_util.h, I changed template class T void load_matrix(std::string fileName, TNT::Array2Ddouble *M) to void

Re: [CMake] [vtkusers] Using VTK with CMake: link errors

2010-08-11 Thread Nicholas Kinar
Does this file actually exist? /Library/Frameworks/Python.framework/Versions/6.1/lib/vtk-5.4/libvtkHybrid.dylib The question is, how did you get a VTK library inside your python framework? That is completely unexpected. (As is a 6.1 version of python... as far as I know, version 6.1 of

Re: [CMake] Using VTK with CMake: link errors

2010-08-11 Thread Nicholas Kinar
On 10-08-11 7:08 AM, Bill Hoffman wrote: On 8/11/2010 12:53 AM, Nicholas Kinar wrote: Library/Frameworks/Python.framework/Versions/6.1/lib/vtk-5.4/libvtkHybrid.dylib, file was built for i386 which is not the architecture being linked (x86_64) You built VTK 32 bit, and are now trying to link

Re: [CMake] [vtkusers] Using VTK with CMake: link errors

2010-08-11 Thread Nicholas Kinar
On 10-08-11 8:36 AM, Nicholas Kinar wrote: Does this file actually exist? /Library/Frameworks/Python.framework/Versions/6.1/lib/vtk-5.4/libvtkHybrid.dylib The question is, how did you get a VTK library inside your python framework? That is completely unexpected. (As is a 6.1 version

[CMake] Using VTK with CMake: link errors

2010-08-10 Thread Nicholas Kinar
Hello, I had originally posted this question to the vtkusers mailing list. However, after receiving feedback from other VTK users it is also apparent that there is a possibility my question belongs on the cmake mailing list. I'm writing a program for a research application, and I would