| | 74 | We now have to setup all CMT setups for the package depencies and project definition. |
| | 75 | This is defined within the packages requirements file and the project file: |
| | 76 | {{{ |
| | 77 | > more A/v1/cmt/requirements |
| | 78 | package A |
| | 79 | |
| | 80 | author Vincent Garonne <garonne@lal.in2p3.fr> |
| | 81 | |
| | 82 | library A A.cxx |
| | 83 | |
| | 84 | macro A_linkopts " -lA " |
| | 85 | > more B/v1/cmt/requirements |
| | 86 | package B |
| | 87 | |
| | 88 | author Vincent Garonne <garonne@lal.in2p3.fr> |
| | 89 | |
| | 90 | use A v1 |
| | 91 | |
| | 92 | # COMMENT: the order of the statements is important for the creation |
| | 93 | # here that means that the library is compiled before the main program |
| | 94 | # otherwise it doesn't work :-( . |
| | 95 | library B B.cxx |
| | 96 | |
| | 97 | application main main.cxx |
| | 98 | |
| | 99 | macro B_linkopts " -lB " |
| | 100 | > more cmt/project.cmt |
| | 101 | project project |
| | 102 | |
| | 103 | build_strategy with_installarea |
| | 104 | }}} |
| | 105 | |
| | 106 | |