Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tutorial and user doc. #4

Merged
merged 14 commits into from Aug 10, 2021
8 changes: 8 additions & 0 deletions .gitignore
@@ -1,3 +1,11 @@
build/
.idea/
cmake-build-*
.vscode/
/.vs
/doc/impl_doc_cn.md
/doc/impl_doc.md
/doc/images
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

impl_doc is incomplete yet. /.vs contains irrelevant Visual Studio Intellisense files.

# Prerequisites
*.d

Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -46,4 +46,11 @@ if (BUILD_TESTING)
add_subdirectory(extern/gtest)
add_executable(dbtest ${TEST_SOURCES})
target_link_libraries(dbtest PUBLIC engine gtest gmock gtest_main)
endif ()

option(BUILD_TUTORIAL "Build the tutorial" ON)
if (BUILD_TUTORIAL)
set(TUTORIAL_SOURCES examples/tutorial.cpp)
add_executable(dbtutorial ${TUTORIAL_SOURCES})
target_link_libraries(dbtutorial PUBLIC engine)
endif ()