Add cpp codes cmake build method (#419)

* feat(codes/cpp): Add cmake build method

* feat(codes/cpp): Modify the cpp support version to c++17

* feat(codes/cpp): fix graph_adjacency_list.cpp cannot be compiled into an executable

* style(codes/cpp): Adjust the code to enhance compatibility.

* feat(codes/cpp): Change cpp version from 17 to 11.
This commit is contained in:
Gonglja
2023-03-14 20:40:33 +08:00
committed by GitHub
parent d09b1e4f9f
commit 567497a6b8
12 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,5 @@
add_executable(avl_tree avl_tree.cpp)
add_executable(binary_search_tree binary_search_tree.cpp)
add_executable(binary_tree binary_tree.cpp)
add_executable(binary_tree_bfs binary_tree_bfs.cpp)
add_executable(binary_tree_dfs binary_tree_dfs.cpp)