18 | | source /lal/CMT/v1r23/mgr/setup.csh |
| 18 | > source /lal/CMT/v1r23/mgr/setup.csh |
| 19 | }}} |
| 20 | * Exemple HelloWorld avec CMT: |
| 21 | * Création du package: |
| 22 | {{{ |
| 23 | > cmt create HelloWorld v1 |
| 24 | }}} |
| 25 | * Création du source |
| 26 | {{{ |
| 27 | > cd HelloWorld/v1/cmt |
| 28 | > cat >../src/HelloWorld.cxx |
| 29 | |
| 30 | #include <iostream> |
| 31 | |
| 32 | int main (int argc, char* argv[]) |
| 33 | { |
| 34 | std::cout << "Hello world" << std::endl; |
| 35 | } |
| 36 | |
| 37 | }}} |
| 38 | * Configuration: |
| 39 | {{{ |
| 40 | > vi requirements |
| 41 | |
| 42 | application HelloWorld HelloWorld.cxx |
| 43 | |
| 44 | }}} |
| 45 | * construction: |
| 46 | {{{ |
| 47 | > cmt make |
| 48 | }}} |
| 49 | * test: |
| 50 | {{{ |
| 51 | > ../amd64_linux26/HelloWorld.exe |
| 52 | Hello world |
| 53 | |