Re: Determining install prefix of my program
- From: Krzesimir Nowak <qdlacz gmail com>
- To: Галымжан Кожаев <kozhayev gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Determining install prefix of my program
- Date: Tue, 01 Sep 2009 16:39:18 +0200
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]