forked from raphael-group/hatchet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (36 loc) · 1.15 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
40
41
42
43
44
45
46
cmake_minimum_required( VERSION 2.8 )
project( HATCHet )
set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
if( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs" )
endif()
include_directories( "src" )
find_package( GUROBI REQUIRED )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG" )
add_executable ( solve
src/solve.cpp
src/ilp-min.h
src/ilp-min.cpp
src/gurobi-utils.h
src/utils.h
src/utils.cpp
src/argparse.h
src/argparse.cpp
src/input_instance.h
src/input_instance.cpp
src/coordinate_descent.h
src/coordinate_descent.cpp
src/worker.h
src/worker.cpp
src/bbc_instance.h
src/bbc_instance.cpp
)
target_include_directories( solve PUBLIC "src" ${GUROBI_INCLUDE_DIR} )
target_link_libraries( solve ${GUROBI_LIBRARIES} )
install(TARGETS solve
DESTINATION "${CMAKE_INSTALL_PREFIX}"
)