Skip to content

Commit

Permalink
Major refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
m43 committed Nov 11, 2020
1 parent f395a28 commit 85080b8
Show file tree
Hide file tree
Showing 18 changed files with 1,072 additions and 1,137 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(kth-aa)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") # -Wall -Wextra # -Werror
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") # -Werror

include_directories(include)
include_directories(src)
Expand Down
17 changes: 4 additions & 13 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
set(BINARY ${CMAKE_PROJECT_NAME})
#file(GLOB_RECURSE BLOSSOM5 "blossom5-v2.05.src/.cpp" "blossom5-v2.05.src/.h")
#add_executable(${BINARY}_kattis main_kattis.cpp TSP.h TSP.cpp utility.h utility.cpp ${BLOSSOM5})
#add_executable(${BINARY}_test main.cpp TSP.h TSP.cpp utility.h utility.cpp ${BLOSSOM5})
add_executable(${BINARY}_kattis main_kattis.cpp TSP.h utility.h utility.cpp blossom.h)
add_executable(${BINARY}_test main.cpp TSP.h utility.h utility.cpp blossom.h)


# For adding all recursively into one executable
#set(BINARY ${CMAKE_PROJECT_NAME})
#file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.cpp)
#set(SOURCES ${SOURCES})
#add_executable(${BINARY}_run ${SOURCES})
#add_library(${BINARY}_lib STATIC ${SOURCES})
add_executable(${BINARY}_kattis main_kattis.cpp TSP.h utility.h blossom5_all_in_one_file.h chokolino.h christofides.h
local2opt.h clarke_wright.h greedy.h bruteforce.h local2opt_no_knn.h local3opt_no_knn_sequential.h)
add_executable(${BINARY}_test main.cpp TSP.h utility.h blossom5_all_in_one_file.h chokolino.h christofides.h
local2opt.h clarke_wright.h greedy.h bruteforce.h local2opt_no_knn.h local3opt_no_knn_sequential.h)
Loading

0 comments on commit 85080b8

Please sign in to comment.