Re: [CMake] Finding Python Modules with CMake

2011-01-03 Thread Mark Moll
endif(NOT _${module}_status) endif(NOT PY_${module_upper}) find_package_handle_standard_args(PY_${module} DEFAULT_MSG PY_${module_upper}) endfunction(find_python_module) You can then write: find_python_module(PyQt4 REQUIRED) -- Mark Moll

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Mark Moll
On Jun 25, 2010, at 10:05 AM, Janosch Peters wrote: > On 2010-06-25 16:32:38 +0200, Mark Moll said: >> On Jun 25, 2010, at 9:11 AM, Janosch Peters wrote: >>> Ok. But the python dilemma still remains: >>> 1. FindPythonInterp and FindPythonLibs might still produce inc

Re: [CMake] Various problems deploying a python module

2010-06-25 Thread Mark Moll
On Jun 25, 2010, at 9:11 AM, Janosch Peters wrote: > On 2010-06-25 15:45:37 +0200, Michael Hertling said: > >> On 06/25/2010 03:17 PM, Janosch Peters wrote: >>> On 2010-06-21 07:01:36 +0200, Michael Hertling said: 8d87d12 >>> What's that? Leet speak? >> No, these are the first seven and suf

[CMake] check for modules/packages in python and R

2010-06-11 Thread Mark Moll
Attached is my initial attempt to check for the existence of python modules and R packages. In the case of python, I need to be able to check for a specific version of python (find corresponding executable, libraries, and headers) and check for modules in that version of python. This is not po

Re: [CMake] try_compile question

2010-06-07 Thread Mark Moll
On Jun 7, 2010, at 2:30 PM, Alexander Neundorf wrote: > On Monday 07 June 2010, Mark Moll wrote: >> I must be missing something obvious, but I can’t get try_compile to work. I >> have the following file, CheckSZencoder.cpp: >> >> #include >> #include

Re: [CMake] try_compile question

2010-06-07 Thread Mark Moll
On Jun 7, 2010, at 12:19 PM, Torri, Stephen CIV NSWCDD, W15 wrote: >> >> From: cmake-boun...@cmake.org on behalf of Mark Moll >> Sent: Mon 6/7/2010 12:57 PM >> To: cmake@cmake.org >> Subject: [CMake] try_compile question >> >> /opt/local/bin/c++

[CMake] try_compile question

2010-06-07 Thread Mark Moll
I must be missing something obvious, but I can’t get try_compile to work. I have the following file, CheckSZencoder.cpp: #include #include int main(void) { if(SZ_encoder_enabled() == 1) exit(0); else exit(1); } I have these cmake commands: find_library(SZ_LIBRARY sz D

[CMake] finding a specific version of an OS X framework or library

2010-03-24 Thread Mark Moll
Is it possible to find a specific version of an OS X framework or library? I need to link against a specific version of the Python libraries that match the version used to create Boost.Python (another dependency for my project). -- Mark ___ Powere

Re: [CMake] FindHDF5.cmake improvement proposal

2010-03-02 Thread Mark Moll
On Mar 2, 2010, at 10:53 AM, Antonio Valentino wrote: >> 2. For your SZip portion to work, there would need to be a >> FindSZip.cmake in system modules directory. Do you have one that you >> can contribute? > > Oh, sorry. > I found it on gitorious.org > > http://gitorious.org/hdf5/hdf5-v18/blob

Re: [CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects

2010-01-21 Thread Mark Moll
On Jan 21, 2010, at 10:22 AM, Jed Brown wrote: > On Thu, 21 Jan 2010 09:17:22 -0600, Mark Moll wrote: >> You *can* use the Fortran BLAS/LAPACK libraries with C/C++ code. > > Yes, this is actually very common, but check_fortran_function_exists > works by trying to link an actu

Re: [CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects

2010-01-21 Thread Mark Moll
On Jan 20, 2010, at 10:53 PM, Alan W. Irwin wrote: > On 2010-01-21 11:03+0900 Ryo IGARASHI wrote: > >> Dear developers, >> >> Currently, FindLAPACK.cmake and FindBLAS.cmake *requires* Fortran compiler. >> However, I can easily think of a situation when no Fortran compiler >> but LAPACK/BLAS >>

[CMake] "portable" linux binaries?

2009-11-23 Thread Mark Moll
Is there any mechanism in CMake that would make it easier to create Linux binaries that run on more than one version of Linux / glibc? I am thinking of something along the lines of the support for OS X Universal Binaries in CMake or the functionality provided by apgcc in the autopackage tool (h

[CMake] CMake 2.8 FindPythonLibs.cmake broken for default python2.5 install

2009-11-23 Thread Mark Moll
Between cmake 2.6.4 and cmake 2.8 the following lines were removed from the FIND_LIBRARY(PYTHON_LIBRARY ...) command in FindPythonLibs.cmake: -PATH_SUFFIXES - python${_CURRENT_VERSION}/config I don’t understand why this was done, because this is where python libraries are found with th

Re: [CMake] Finding the correct Python framework with cmake

2009-11-11 Thread Mark Moll
Add "-F /opt/local/Library/Frameworks” to your compilation flags or add this line to your .bash_profile: export DYLD_FRAMEWORK_PATH=/opt/local/Library/Frameworks On Nov 11, 2009, at 4:15 PM, Celil Rufat wrote: > I am using the macports version of python on a Snow Leopard computer, and > using

[CMake] add dependency to cpack's "package" target

2009-11-10 Thread Mark Moll
I’d like to force an update of the doxygen-generated documentation before I create a package. It’d be nice if I could do something like: add_dependencies(package doc) where doc is a target that forces doxygen to run. However, this doesn’t work, because the package target isn’t defined.

[CMake] add dependency to cpack's "package" target

2009-11-10 Thread Mark Moll
I’d like to force an update of the doxygen-generated documentation before I create a package. It’d be nice if I could do something like: add_dependencies(package doc) where doc is a target that forces doxygen to run. However, this doesn’t work, because the package target isn’t defined.