-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 1.4 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
project(fbrw)
# Specify the minimum version for CMake
cmake_minimum_required(VERSION 2.8)
set(CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "-std=c++11 -O3 -Wall")
SET(CMAKE_CXX_FLAGS "-std=c++11 -O3 -DNDEBUG -w -pthread -lboost_serialization -lboost_filesystem -lboost_system")
#SET(CMAKE_CXX_FLAGS "-std=c++11 -O3 -w -pthread")
set(Boost_USE_MULTITHREADED TRUE)
find_package(Boost REQUIRED unit_test_framework filesystem system date_time program_options)
#find_package(Threads)
#set(HEADER algo.h build_oracle.h config.h graph.h head.h heap.h mylib.h query.h)
#set(PPRLIB mylib.cpp config.cpp)
# Set the output folder where your program will be created
set(CPP_INCLUDE_PATH /usr/local/include)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR})
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
# The following folder will be included
include_directories("${PROJECT_SOURCE_DIR}")
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
#add_library(mylib ${PROJECT_SOURCE_DIR}/mylib.cpp ${PROJECT_SOURCE_DIR}/mylib.h)
#add_library(config ${PROJECT_SOURCE_DIR}/config.cpp ${PROJECT_SOURCE_DIR}/config.h)
add_executable(fbrw ${PROJECT_SOURCE_DIR}/fbrw.cpp ${PROJECT_SOURCE_DIR}/mylib.cpp ${PROJECT_SOURCE_DIR}/config.cpp)
#add_executable(HubPPR hubppr.cpp ${PPRLIB} ${HEADER})
target_link_libraries(fbrw pthread boost_serialization boost_filesystem boost_system)