From d37d704b18d16747418cddb777a6dca3109443f5 Mon Sep 17 00:00:00 2001 From: krahets Date: Wed, 15 Mar 2023 01:43:28 +0800 Subject: [PATCH] Update CMakeLists.txt for C++ --- codes/cpp/.gitignore | 4 +++- codes/cpp/CMakeLists.txt | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/codes/cpp/.gitignore b/codes/cpp/.gitignore index 08b67f32c..dc1ffacf4 100644 --- a/codes/cpp/.gitignore +++ b/codes/cpp/.gitignore @@ -5,4 +5,6 @@ # Unignore all dirs !*/ -*.dSYM/ \ No newline at end of file +*.dSYM/ + +build/ diff --git a/codes/cpp/CMakeLists.txt b/codes/cpp/CMakeLists.txt index 20705d64a..9e3f5583a 100644 --- a/codes/cpp/CMakeLists.txt +++ b/codes/cpp/CMakeLists.txt @@ -5,12 +5,12 @@ set(CMAKE_CXX_STANDARD 11) include_directories(./include) -add_subdirectory(chapter_tree) +add_subdirectory(chapter_computational_complexity) +add_subdirectory(chapter_array_and_linkedlist) add_subdirectory(chapter_stack_and_queue) -add_subdirectory(chapter_sorting) -add_subdirectory(chapter_searching) +add_subdirectory(chapter_hashing) +add_subdirectory(chapter_tree) add_subdirectory(chapter_heap) add_subdirectory(chapter_graph) -add_subdirectory(chapter_hashing) -add_subdirectory(chapter_computational_complexity) -add_subdirectory(chapter_array_and_linkedlist) \ No newline at end of file +add_subdirectory(chapter_sorting) +add_subdirectory(chapter_searching)