From 222b293089a2823994d7ba02fe8a7514d0671eaa Mon Sep 17 00:00:00 2001 From: Svenja Mehringer Date: Fri, 22 Mar 2024 10:56:04 +0100 Subject: [PATCH] some improvements --- README.md | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e362e02..5bb03f7 100644 --- a/README.md +++ b/README.md @@ -66,12 +66,18 @@ Note: The subsequent steps, e.g., Directory Structure, are not necessary. If you want to build an app, do the following: -0. You need to be singed in with a Github account and have a valid ssh-key to communicate with your repositories. +0. You need to be singed in with a **Github account**. + +1.
Press the `Use this template`-Button on the [Website](https://github.com/seqan/app-template) to create your **own repository**.
+ + Screenshot TODO + +
+2. Clone your repository locally: `git clone git@github.com:max/my-repo-name.git` +3.
Adapt the project name in `my-repo-name/CMakeLists.txt`, e.g. from `app-template` to `MyDragonApp`
+ + The project name is defined in these lines: -1. On this Github page, press the green `Use this template` Button on the top right corner and follow the instructions to create a new repository. Screenshot TODO -2. Clone your repository (e.g. `git clone git@github.com:max/my-repo-name.git`, check Github tutorials for more detail) -3. In your repository, adapt the project name in `my-repo-name/CMakeLists.txt`, e.g. from `app-template` to e.g. `MyDragonApp` -
The project name is defined in these lines:
```cmake project (app-template LANGUAGES CXX @@ -79,8 +85,9 @@ If you want to build an app, do the following: DESCRIPTION "My application description" ) ``` -
-
Change it e.g. to this:
+ + Change it e.g. to this: + ```cmake project (MyDragonApp LANGUAGES CXX @@ -88,13 +95,17 @@ If you want to build an app, do the following: DESCRIPTION "Let dragons fly" ) ``` +
4. Next to your local repository clone `my-repo-name`, create a build directory and visit it: `mkdir build && cd build` 5. Run cmake: `cmake ../my-repo-name` 6. Build the application: `make` -7. Build and run the tests: `make check` +7.
Build and run the tests: `make check`
+ Important Note: If you changed the project name, then some tests might fail because they test that name and its not `app-template` anymore. -8. execute the app: `./bin/MyDragonApp`. + +
+8. Execute the app: `./bin/MyDragonApp`.