From d3e597af942b8897809b2b2d0fdba155540e44e6 Mon Sep 17 00:00:00 2001 From: krahets Date: Tue, 13 Jun 2023 21:16:54 +0800 Subject: [PATCH] Update cmakelists.txt --- codes/c/CMakeLists.txt | 1 - codes/cpp/CMakeLists.txt | 1 + codes/cpp/chapter_backtracking/CMakeLists.txt | 7 +++++++ codes/cpp/chapter_heap/CMakeLists.txt | 1 + codes/cpp/chapter_searching/CMakeLists.txt | 4 +--- 5 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 codes/cpp/chapter_backtracking/CMakeLists.txt diff --git a/codes/c/CMakeLists.txt b/codes/c/CMakeLists.txt index 030d2f93f..915e70730 100644 --- a/codes/c/CMakeLists.txt +++ b/codes/c/CMakeLists.txt @@ -13,4 +13,3 @@ add_subdirectory(chapter_hashing) add_subdirectory(chapter_tree) add_subdirectory(chapter_searching) add_subdirectory(chapter_sorting) -add_subdirectory(chapter_backtracking) \ No newline at end of file diff --git a/codes/cpp/CMakeLists.txt b/codes/cpp/CMakeLists.txt index 9e3f5583a..ad0e2f749 100644 --- a/codes/cpp/CMakeLists.txt +++ b/codes/cpp/CMakeLists.txt @@ -14,3 +14,4 @@ add_subdirectory(chapter_heap) add_subdirectory(chapter_graph) add_subdirectory(chapter_sorting) add_subdirectory(chapter_searching) +add_subdirectory(chapter_backtracking) diff --git a/codes/cpp/chapter_backtracking/CMakeLists.txt b/codes/cpp/chapter_backtracking/CMakeLists.txt new file mode 100644 index 000000000..93565fe3d --- /dev/null +++ b/codes/cpp/chapter_backtracking/CMakeLists.txt @@ -0,0 +1,7 @@ +add_executable(preorder_traversal_i_compact preorder_traversal_i_compact.cpp) +add_executable(preorder_traversal_ii_compact preorder_traversal_ii_compact.cpp) +add_executable(preorder_traversal_iii_compact preorder_traversal_iii_compact.cpp) +add_executable(preorder_traversal_iii_template preorder_traversal_iii_template.cpp) +add_executable(permutations_i permutations_i.cpp) +add_executable(permutations_ii permutations_ii.cpp) +add_executable(n_queens n_queens.cpp) diff --git a/codes/cpp/chapter_heap/CMakeLists.txt b/codes/cpp/chapter_heap/CMakeLists.txt index 481b69730..1ac33a44f 100644 --- a/codes/cpp/chapter_heap/CMakeLists.txt +++ b/codes/cpp/chapter_heap/CMakeLists.txt @@ -1,2 +1,3 @@ add_executable(heap heap.cpp) add_executable(my_heap my_heap.cpp) +add_executable(top_k top_k.cpp) diff --git a/codes/cpp/chapter_searching/CMakeLists.txt b/codes/cpp/chapter_searching/CMakeLists.txt index 3b11b9fef..d65ee314f 100644 --- a/codes/cpp/chapter_searching/CMakeLists.txt +++ b/codes/cpp/chapter_searching/CMakeLists.txt @@ -1,5 +1,3 @@ add_executable(binary_search binary_search.cpp) -add_executable(binary_search binary_search_edge.cpp) -add_executable(hashing_search hashing_search.cpp) +add_executable(binary_search_edge binary_search_edge.cpp) add_executable(two_sum two_sum.cpp) -add_executable(linear_search linear_search.cpp) \ No newline at end of file