-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
80 lines (68 loc) · 2.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
cmake_minimum_required(VERSION 3.10)
project(ETL)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_VERBOSE_MAKEFILE ON)
include_directories("third_party/json/single_include")
add_subdirectory(third_party/backward-cpp)
add_subdirectory(third_party/varsorter)
add_subdirectory(third_party/FHoSP/dependencies/graphnestingc)
include_directories("third_party/FHoSP/dependencies/graphnestingc")
add_subdirectory(third_party/stxxl)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${STXXL_CXX_FLAGS}")
include_directories(${STXXL_INCLUDE_DIRS})
#[[set(PTHREAD_LIB pthread)
set(LIBM m)
set(LIBZ z)
set(LIBZ4 lz4)
set(LIBZSTD zstd)
set(LIBDL dl)
set(LIBSNAPPY snappy)
set(LIBBZ2 bz2)
set(LIBFDB forestdb)
set(LIBLDB leveldb)
set(LIBRDB rocksdb)
set(LIBCOUCH couchstore)
set(LIBWT wiredtiger)
set(LIBTCM tcmalloc)
find_package(snappy)
include_directories(${SNAPPY_INCLUDE_DIR})
find_package(LZ4)
include_directories(${LZ4_INCLUDE_DIR})
find_package(RocksDB)
LINK_DIRECTORIES(${LZ4_LIBRARY})]]
add_executable(ETL main.cpp src/maps/TransformationGraphAdjacencyList.cpp
src/maps/TransformationGraphAdjacencyList.h
src/maps/OffsetMap.h
src/maps/OffsetMap.cpp
src/maps/VertexHash.cpp
src/maps/VertexHash.h
src/maps/NestingIndex.cpp
src/maps/NestingIndex.h
src/sets/VertexStack.h
src/sets/VertexStack.cpp
src/graphs/TransformationGraph.cpp
src/graphs/TransformationGraph.h
src/graphs/LoadingGraph.cpp
src/graphs/LoadingGraph.h
src/sorting/AbstractSortingStrategy.cpp
src/sorting/AbstractSortingStrategy.h
src/sorting/IdStrategy.cpp
src/sorting/IdStrategy.h
src/sorting/HashStrategy.cpp
src/sorting/HashStrategy.h
src/sorting/SortingStrategyFactory.cpp
src/sorting/SortingStrategyFactory.h
test/test_idstrategy_class.cpp
test/test_idstrategy_class.h
test/test_hashstrategy_class.cpp
test/test_hashstrategy_class.h
test/test_sorting_strategies.cpp
test/test_sorting_strategies.h
src/conf/ConfigurationFile.cpp
src/conf/ConfigurationFile.h
${BACKWARD_ENABLE})
# This will add libraries, definitions and include directories needed by backward
# by setting each property on the target.
add_backward(ETL)
target_link_libraries(ETL libvarsorter stxxl graphserializers)