This is a template for C++ app developers. You can easily use this template and modify the existing code to suit your needs. It provides an elementary CMake set-up, some useful SeqAn libraries, and an example application.
For requirements, check the Software section of the SeqAn3 Quick Setup.
If you want to build an app, do the following:
Use this template
-Button to create your own repository.git clone git@github.com:max/my-repo-name.git
Note: The subsequent steps are not necessary but a recommendation and quick setup.
my-repo-name/CMakeLists.txt
, e.g., from app-template
to MyDragonApp
If you just want some hands-on experience with SeqAn Libraries or a quick setup for our tutorials, do the following:
git clone https://github.com/seqan/app-template.git
mkdir build && cd build
cmake ../app-template
make
./bin/app-template
You can now start your hands-on experience by looking at or editing the file src/main.cpp
.
If you want to add a new cpp file (e.g., tutorial1.cpp) that is compiled and linked with the current infrastructure, do the following:
Create a new file tutorial1.cpp
in the src/
directory.
src/CMakeLists.txt
# Add another cpp file.
add_executable (tutorial01 tutorial01.cpp)
target_link_libraries (tutorial01 PRIVATE "${PROJECT_NAME}_lib")
cd build
cmake .
make tutorial01
./tutorial01