Re: Determining install prefix of my program



On Tue, 2009-09-01 at 09:50 +0600, Галымжан Кожаев wrote:
> I have only one problem: how can I determine install prefix of my
> program (e.g./usr/local/), does gtkmm have such functions ? The
> program must correctly determine it in order to load program images,
> gladefiles and etc. The program uses gtkmm 2.16 and glibmm 2.20, also
> CMake 2.6 used for building project.

This is usually done in compile stage - I mean prefix is used as a
defined value, which is substituted in source file. I don't know
anything about CMake, but maybe looking at nemiver will help you (but it
is using autotools).

http://git.gnome.org/cgit/nemiver/tree/src/common/nmv-env.h
http://git.gnome.org/cgit/nemiver/tree/src/common/nmv-env.cc
http://git.gnome.org/cgit/nemiver/tree/src/common/Makefile.am

(in Makefile.am look at the bottom of the file).

Krzem



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]