hello-algo/codes/c/chapter_greedy/CMakeLists.txt

9 lines
319 B
CMake
Raw Normal View History

2023-09-09 16:28:44 +08:00
add_executable(coin_change_greedy coin_change_greedy.c)
add_executable(fractional_knapsack fractional_knapsack.c)
2023-09-26 10:57:53 +08:00
add_executable(max_capacity max_capacity.c)
add_executable(max_product_cutting max_product_cutting.c)
if (NOT CMAKE_C_COMPILER_ID STREQUAL "MSVC")
target_link_libraries(max_product_cutting m)
endif()