Skip to content

Commit 72855d8

Browse files
committed
Fix cmakelists for en/C code.
1 parent 50c8169 commit 72855d8

File tree

14 files changed

+77
-0
lines changed

14 files changed

+77
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_executable(array array.c)
2+
add_executable(linked_list linked_list.c)
3+
add_executable(my_list my_list.c)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
add_executable(permutations_i permutations_i.c)
2+
add_executable(permutations_ii permutations_ii.c)
3+
add_executable(preorder_traversal_i_compact preorder_traversal_i_compact.c)
4+
add_executable(preorder_traversal_ii_compact preorder_traversal_ii_compact.c)
5+
add_executable(preorder_traversal_iii_compact preorder_traversal_iii_compact.c)
6+
add_executable(preorder_traversal_iii_template preorder_traversal_iii_template.c)
7+
add_executable(subset_sum_i_naive subset_sum_i_naive.c)
8+
add_executable(subset_sum_i subset_sum_i.c)
9+
add_executable(subset_sum_ii subset_sum_ii.c)
10+
add_executable(n_queens n_queens.c)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
add_executable(iteration iteration.c)
2+
add_executable(recursion recursion.c)
3+
add_executable(time_complexity time_complexity.c)
4+
add_executable(worst_best_time_complexity worst_best_time_complexity.c)
5+
add_executable(space_complexity space_complexity.c)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_executable(binary_search_recur binary_search_recur.c)
2+
add_executable(build_tree build_tree.c)
3+
add_executable(hanota hanota.c)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
add_executable(climbing_stairs_constraint_dp climbing_stairs_constraint_dp.c)
2+
add_executable(min_cost_climbing_stairs_dp min_cost_climbing_stairs_dp.c)
3+
add_executable(min_path_sum min_path_sum.c)
4+
add_executable(knapsack knapsack.c)
5+
add_executable(unbounded_knapsack unbounded_knapsack.c)
6+
add_executable(coin_change coin_change.c)
7+
add_executable(coin_change_ii coin_change_ii.c)
8+
add_executable(edit_distance edit_distance.c)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
add_executable(graph_adjacency_matrix graph_adjacency_matrix.c)
2+
add_executable(graph_adjacency_list_test graph_adjacency_list_test.c)
3+
add_executable(graph_bfs graph_bfs.c)
4+
add_executable(graph_dfs graph_dfs.c)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
add_executable(coin_change_greedy coin_change_greedy.c)
2+
add_executable(fractional_knapsack fractional_knapsack.c)
3+
add_executable(max_capacity max_capacity.c)
4+
add_executable(max_product_cutting max_product_cutting.c)
5+
6+
if (NOT CMAKE_C_COMPILER_ID STREQUAL "MSVC")
7+
target_link_libraries(max_product_cutting m)
8+
endif()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
add_executable(array_hash_map array_hash_map.c)
2+
add_executable(hash_map_chaining hash_map_chaining.c)
3+
add_executable(hash_map_open_addressing hash_map_open_addressing.c)
4+
add_executable(simple_hash simple_hash.c)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
add_executable(my_heap_test my_heap_test.c)
2+
add_executable(top_k top_k.c)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
add_executable(binary_search binary_search.c)
2+
add_executable(two_sum two_sum.c)
3+
add_executable(binary_search_edge binary_search_edge.c)
4+
add_executable(binary_search_insertion binary_search_insertion.c)

0 commit comments

Comments
 (0)