Re: [CMake] Give program path of data directory at installation time

2011-06-07 Thread Jordi Gutiérrez Hermoso
2011/6/7 Jordi Gutiérrez Hermoso : > I have a Python script $program that should be installed under bin/, > but it needs a lot of data that should be installed under > share/$program/. I would like for the install Makefile target to > somehow modify $program to let it know the absolute

[CMake] Give program path of data directory at installation time

2011-06-07 Thread Jordi Gutiérrez Hermoso
I have a Python script $program that should be installed under bin/, but it needs a lot of data that should be installed under share/$program/. I would like for the install Makefile target to somehow modify $program to let it know the absolute pathname of where the data share/$program/ is, includin

Re: [CMake] Targets like Makefile suffix rules?

2011-06-01 Thread Jordi Gutiérrez Hermoso
On 1 June 2011 10:41, Michael Wild wrote: > On 06/01/2011 05:19 PM, Jordi Gutiérrez Hermoso wrote: >> If I have several files with a .cc or .cpp filename extension that I >> want to compile using Octave's mkoctfile script (a wrapper that turns >> them into load

[CMake] Targets like Makefile suffix rules?

2011-06-01 Thread Jordi Gutiérrez Hermoso
If I have several files with a .cc or .cpp filename extension that I want to compile using Octave's mkoctfile script (a wrapper that turns them into loadable object code in a form recognisable by the Octave interpreter), how should I do it? I thought I could do it with add_custom_command, but as I