CMakeLists.txt 638 Bytes
Newer Older
Valentin Antuori's avatar
Valentin Antuori committed
1
2
3
4
5
6
7
8
cmake_minimum_required(VERSION 3.0)

project(main)

set(SRCS
    src/main.cpp
    src/instance.cpp
    src/solution.cpp
Valentin Antuori's avatar
Valentin Antuori committed
9
	src/options.cpp
Valentin Antuori's avatar
Valentin Antuori committed
10
    src/mcts.cpp
Valentin Antuori's avatar
Valentin Antuori committed
11
    src/SparseSet.cpp
Valentin Antuori's avatar
Valentin Antuori committed
12
    src/DFSRollout.cpp
Valentin Antuori's avatar
Valentin Antuori committed
13
    src/heuristic.cpp
Valentin Antuori's avatar
Valentin Antuori committed
14
15
    )

ehebrard's avatar
options    
ehebrard committed
16
17
18
19

include_directories(src)

AUX_SOURCE_DIRECTORY(src/tclap TCLAP)
Valentin Antuori's avatar
Valentin Antuori committed
20
21
22
23
    
set(HEADERS
    src/instance.h
    src/solution.h
Valentin Antuori's avatar
Valentin Antuori committed
24
	src/options.h
Valentin Antuori's avatar
Valentin Antuori committed
25
    src/mcts.h
Valentin Antuori's avatar
Valentin Antuori committed
26
    src/SparseSet.hpp
Valentin Antuori's avatar
Valentin Antuori committed
27
    src/DFSRollout.h
Valentin Antuori's avatar
Valentin Antuori committed
28
    src/heuristic.h
Valentin Antuori's avatar
Valentin Antuori committed
29
	${TCLAP}
Valentin Antuori's avatar
Valentin Antuori committed
30
31
32
    )


ehebrard's avatar
options    
ehebrard committed
33
add_executable(main ${SRCS} ${HEADERS})
Valentin Antuori's avatar
Valentin Antuori committed
34
35


ehebrard's avatar
options    
ehebrard committed
36
set_target_properties(main PROPERTIES
Valentin Antuori's avatar
Valentin Antuori committed
37
    CXX_STANDARD 14
ehebrard's avatar
options    
ehebrard committed
38
39
    CXX_STANDARD_REQUIRED ON
    CXX_EXTENSIONS ON
Valentin Antuori's avatar
Valentin Antuori committed
40
41
)
set(CMAKE_CXX_FLAGS "-O3")