mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 23:46:29 +08:00
567497a6b8
* 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.
16 lines
No EOL
459 B
CMake
16 lines
No EOL
459 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(hello_algo CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
include_directories(./include)
|
|
|
|
add_subdirectory(chapter_tree)
|
|
add_subdirectory(chapter_stack_and_queue)
|
|
add_subdirectory(chapter_sorting)
|
|
add_subdirectory(chapter_searching)
|
|
add_subdirectory(chapter_heap)
|
|
add_subdirectory(chapter_graph)
|
|
add_subdirectory(chapter_hashing)
|
|
add_subdirectory(chapter_computational_complexity)
|
|
add_subdirectory(chapter_array_and_linkedlist) |