-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (23 loc) · 1.02 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
cmake_minimum_required(VERSION 2.8)
project(blo)
set(SRC
src/main.c
src/ll.c
src/plot.c
src/read_input.c
src/utils.c
src/models/m1a.c
include/models/m1.h
src/models/m1.c
include/models/m2ewh.h
src/models/m2ewh.c
include/models/m2ev.h
src/models/m2ev.c
include/models/mo.h src/models/mo.c include/models/m2sb.h src/models/m2sb.c src/models/m3.c include/models/m3.h src/ul.c include/ul.h include/pso.h src/pso.c src/sa.c include/sa.h src/ga.c include/ga.h src/lbs.c include/lbs.h src/csa.c include/csa.h src/de.c include/de.h include/grasp.h src/grasp.c include/root.h)
add_executable(${PROJECT_NAME} ${SRC})
set(CPLEX /opt/ibm/ILOG/CPLEX_Studio201/cplex)
include_directories(include)
include_directories(include/modules)
target_link_libraries(${PROJECT_NAME} -L${CPLEX}/lib/x86-64_linux/static_pic)
target_link_libraries(${PROJECT_NAME} -lcplex -lm -lpthread -ldl)
target_include_directories(${PROJECT_NAME} PRIVATE ${CPLEX}/include)