-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (32 loc) · 1.52 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.10.2)
project(tsp_op2 C)
set(CMAKE_C_STANDARD 11)
# change path if needed
set(CPLEX_HEADERS "/opt/ibm/ILOG/CPLEX_Studio201/cplex/include/ilcplex/")
set(CPLEX_LIBS_STATIC "/opt/ibm/ILOG/CPLEX_Studio201/cplex/lib/x86-64_linux/static_pic/")
set(CONCORDE_HEADER "/opt/concorde/")
set(CONCORDE_LIB "/opt/concorde/")
include_directories(src)
include_directories(${CPLEX_HEADERS})
include_directories(${CONCORDE_HEADER})
link_directories(${CPLEX_LIBS_STATIC})
link_directories(${CONCORDE_LIB})
add_executable(tsp
src/main.c
src/tsp.c src/tsp.h
src/plot.c src/plot.h
src/utils.c src/utils.h
src/formulation_Benders.c src/formulation_Benders.h
src/formulation_MTZ.c src/formulation_MTZ.h
src/formulation_commons.c src/formulation_commons.h
src/formulation_GG.c src/formulation_GG.h
src/performance.c src/performance.h
src/distances.c src/distances.h
src/parsers.c src/parsers.h
src/formulation_cuts.c src/formulation_cuts.h
src/formulation_sfixing.c src/formulation_sfixing.h
src/heuristics.c src/heuristics.h
src/heuristic_greedy.c src/heuristic_greedy.h
src/heuristic_extramileage.c src/heuristic_extramileage.h
src/graham_scan.c src/graham_scan.h src/heuristic_kopt.c src/heuristic_kopt.h src/heuristic_VNS.c src/heuristic_VNS.h src/heuristic_tabu_search.c src/heuristic_tabu_search.h src/formulation_hfixing.c src/formulation_hfixing.h)
target_link_libraries(tsp cplex m pthread dl)