-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
43 lines (35 loc) · 1.26 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
35
36
37
38
39
40
41
42
43
cmake_minimum_required (VERSION 2.8)
project (edgepart)
set(CMAKE_VERBOSE_MAKEFILE off)
# find_package (glog REQUIRED)
# find_package (gflags REQUIRED)
# find_package (Boost REQUIRED)
# SET a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
# SET the possible values of build type for cmake-gui
endif()
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -pthread -fopenmp")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_EXE_LINK_FLAGS_RELEASE} -Ofast -DNDEBUG")
add_subdirectory(threadpool11)
include_directories(./threadpool11/include)
add_executable (main
src/main.cpp
src/util.cpp
src/sort.cpp
src/graph.cpp
src/ne_partitioner.cpp
src/sne_partitioner.cpp
src/random_partitioner.cpp
src/hsfc_partitioner.cpp
src/dbh_partitioner.cpp
src/conversions.cpp
src/shuffler.cpp)
add_executable (graph2edgelist
src/graph2edgelist.cpp
src/util.cpp
src/conversions.cpp)
target_link_libraries (main glog gflags threadpool11)
target_link_libraries (graph2edgelist glog gflags threadpool11)