-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
40 lines (26 loc) · 922 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
32
33
34
35
36
cmake_minimum_required(VERSION 3.1)
project(CompressGraph
LANGUAGES C CXX
)
set(CMAKE_CXX_STANDARD 17)
find_package(OpenMP REQUIRED)
if(OPENMP_FOUND)
message("OPENMP FOUND")
set(CMAKE_CXX_FLAGS "-fopenmp -LLIBDIR -Ofast")
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(PROJECT_DEPS_DIR ${PROJECT_SOURCE_DIR}/deps)
include_directories(${PROJECT_SOURCE_DIR} ${PROJECT_DEPS_DIR})
add_executable(compress src/compress.cpp core/compression/array.cc core/compression/basics.cc core/compression/hash.cc core/compression/heap.cc core/compression/records.cc)
add_executable(filter src/filter.cpp)
add_executable(filter_decomp src/filter_decomp.cpp)
add_subdirectory(utils)
option(LIGRA "compile CPU apps" OFF)
option(GUNROCK "compile GPU apps" OFF)
if(LIGRA)
add_subdirectory(src/apps_ligra)
endif()
if(GUNROCK)
enable_language(CUDA)
add_subdirectory(src/apps_gunrock)
endif()