Skip to content

Commit

Permalink
Fix cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Apr 18, 2024
1 parent af31a53 commit 8310e28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/knapsack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ target_link_libraries(KnapsackSolver_knapsack_main PUBLIC
KnapsackSolver_knapsack_dynamic_programming_bellman
KnapsackSolver_knapsack_dynamic_programming_primal_dual
Boost::program_options)
set_target_properties(KnapsackSolver_knapsack_main PROPERTIES OUTPUT_NAME "knapsacksolver_knapsack" )
set_target_properties(KnapsackSolver_knapsack_main PROPERTIES OUTPUT_NAME "knapsacksolver_knapsack")
install(TARGETS KnapsackSolver_knapsack_main)

add_library(KnapsackSolver_knapsack_generator)
Expand Down
4 changes: 2 additions & 2 deletions src/multiple_choice_subset_sum/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target_include_directories(KnapsackSolver_multiple_choice_subset_sum PUBLIC
${PROJECT_SOURCE_DIR}/include)
target_link_libraries(KnapsackSolver_multiple_choice_subset_sum PUBLIC
OptimizationTools::utils)
add_library(KnapsackSolver::knapsack ALIAS KnapsackSolver_multiple_choice_subset_sum)
add_library(KnapsackSolver::multiple_choice_subset_sum ALIAS KnapsackSolver_multiple_choice_subset_sum)

add_subdirectory(algorithms)

Expand All @@ -18,5 +18,5 @@ target_sources(KnapsackSolver_multiple_choice_subset_sum_main PRIVATE
target_link_libraries(KnapsackSolver_multiple_choice_subset_sum_main PUBLIC
KnapsackSolver_multiple_choice_subset_sum_dynamic_programming_bellman
Boost::program_options)
set_target_properties(KnapsackSolver_multiple_choice_subset_sum_main PROPERTIES OUTPUT_NAME "knapsacksolver_multiple_choice_subset_sum" )
set_target_properties(KnapsackSolver_multiple_choice_subset_sum_main PROPERTIES OUTPUT_NAME "knapsacksolver_multiple_choice_subset_sum")
install(TARGETS KnapsackSolver_multiple_choice_subset_sum_main)
2 changes: 1 addition & 1 deletion src/multiple_choice_subset_sum/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ target_include_directories(KnapsackSolver_multiple_choice_subset_sum_dynamic_pro
${PROJECT_SOURCE_DIR}/include)
target_link_libraries(KnapsackSolver_multiple_choice_subset_sum_dynamic_programming_bellman PUBLIC
KnapsackSolver_multiple_choice_subset_sum)
add_library(KnapsackSolver::knapsack::dynamic_programming_bellman ALIAS KnapsackSolver_multiple_choice_subset_sum_dynamic_programming_bellman)
add_library(KnapsackSolver::multiple_choice_subset_sum::dynamic_programming_bellman ALIAS KnapsackSolver_multiple_choice_subset_sum_dynamic_programming_bellman)
2 changes: 1 addition & 1 deletion src/subset_sum/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ target_link_libraries(KnapsackSolver_subset_sum_main PUBLIC
KnapsackSolver_subset_sum_dynamic_programming_balancing
KnapsackSolver_subset_sum_dynamic_programming_primal_dual
Boost::program_options)
set_target_properties(KnapsackSolver_subset_sum_main PROPERTIES OUTPUT_NAME "knapsacksolver_subset_sum" )
set_target_properties(KnapsackSolver_subset_sum_main PROPERTIES OUTPUT_NAME "knapsacksolver_subset_sum")
install(TARGETS KnapsackSolver_subset_sum_main)

add_library(KnapsackSolver_subset_sum_generator)
Expand Down

0 comments on commit 8310e28

Please sign in to comment.