Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (826 Bytes)

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

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

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

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

    
20
include_directories (${PROJECT_SOURCE_DECLARATION_DIRECTORY})
21

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

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