-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (24 loc) · 968 Bytes
/
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
cmake_minimum_required(VERSION 3.17)
project(GraphColoring)
set(CMAKE_CXX_STANDARD 17)
########## Boost set up
#include_directories("../boost_1_77_0")
#set(BOOST_ROOT boost_1_77_0)
# Need to install boost from the system or compile
# program_options separately
find_package(Boost COMPONENTS program_options filesystem REQUIRED)
message(${Boost_INCLUDE_DIR})
include_directories(${Boost_INCLUDE_DIR})
########## COMPILE MACRO DEBUG
#add_definitions(-DMULTITHREAD_DEBUG)
#add_definitions(-DMTD=1)
########## COMPILE libraries
add_executable(GraphColoring main.cpp
Graph/Algorithms.cpp
Graph/Graph.h
Graph/GraphCSR.cpp Graph/GraphAdjL.cpp Graph/GraphAdjM.cpp
PrintMenu.h Graph/readInput/ReadInput.cpp Graph/readInput/ReadInput.h)
target_link_libraries(GraphColoring boost_program_options boost_filesystem pthread)
add_custom_command(TARGET GraphColoring
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy GraphColoring ../)