| Version 1 (modified by , 21 years ago) ( diff ) |
|---|
We illustrate here a simple example of package dependency. We show how CMT deals with a package dependency between the package A and B.
Let's consider a package A:
> cmt create A V1
...
> cd A/v1/src
...
> more A.h
#include <iostream>
using namespace std;
class A
{
public:
A() {}
~A() {}
void print ();
};
> more A.cxx
#include "A.h"
void A::print ()
{
cout<<"A"<<endl;
}
We have the following requirement file:
> cd cmt > more requirements package A author Vincent Garonne <garonne@lal.in2p3.fr> library A A.cxx macro A_linkopts " -L$(AROOT)/$(A_tag) -lA "
The macro A_linkopts will be automaticaly inserted for the link operation. The library location is specified with $(AROOT)/$(A_tag).
Note:
See TracWiki
for help on using the wiki.
