Statistics
| Branch: | Revision:

root / custompackages / graph-parser / CMakeLists.txt @ ee0dd796

History | View | Annotate | Download (1.08 KB)

1
cmake_minimum_required(VERSION 3.3)
2

    
3
set (PROJECT_NAME "graph_parser" CXX)
4
project (${PROJECT_NAME})
5

    
6
set (PROJECT_SOURCE_DEFINITION_DIRECTORY ${PROJECT_SOURCE_DIR}/src)
7
#set (MAIN_FILE ${PROJECT_SOURCE_DEFINITION_DIRECTORY}/main.cpp)
8
 set (MAIN_FILE ${PROJECT_SOURCE_DEFINITION_DIRECTORY}/main.cpp src/parser.cpp src/parser.h src/common.h src/utility.cpp src/utility.h src/centrality.cpp src/centrality.h src/sub_component.cpp src/sub_component.h src/bi_connected_components.cpp src/bi_connected_components.h)
9

    
10
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
11

    
12
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
13

    
14
set (BOOST_ROOT "/usr/local/boost/")
15
find_package(Boost)
16
if(Boost_FOUND)
17
    include_directories(${INCLUDE_DIRECTORIES} ${Boost_INCLUDE_DIRS})
18
    link_directories(${LINK_DIRECTORIES} ${Boost_LIBRARY_DIRS})
19
endif()
20

    
21
include_directories (${PROJECT_SOURCE_DECLARATION_DIRECTORY})
22

    
23
# "Add an executable to the project using the specified source files."
24
add_executable(${PROJECT_NAME} ${MAIN_FILE})
25

    
26
# "Link a target to given libraries."
27
target_link_libraries (${PROJECT_NAME})