-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·57 lines (46 loc) · 1.7 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
cmake_minimum_required(VERSION 2.8)
project(cs222p-winter20)
set(CMAKE_CXX_STANDARD 11)
add_custom_target(clean-all COMMAND rm Index* Indices* left* right* large* group* *out Tables Columns tbl_* *_file *idx)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -O1 -g -fno-omit-frame-pointer -ledit")
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DDEBUG=1)
endif ()
#add_definitions(-DDATABASE_FOLDER=\"../cli/\")
add_library(PFM ./rbf/pfm.cc)
add_library(RBFM ./rbf/rbfm.cc)
add_library(RM ./rm/rm.cc ${RBFM})
add_library(IX ./ix/ix.cc ${PFM})
add_library(QE ./qe/qe.cc ${IX} ${RM})
#add_library(CLI ./cli/cli.cc ${QE} ${IX} ${RM})
file(GLOB files rbf/rbftest*.cc)
foreach (file ${files})
get_filename_component(name ${file} NAME_WE)
add_executable(${name} ${file})
target_link_libraries(${name} RBFM PFM)
endforeach ()
file(GLOB files rm/rmtest_*.cc)
foreach (file ${files})
get_filename_component(name ${file} NAME_WE)
add_executable(${name} ${file})
target_link_libraries(${name} RM IX RBFM PFM)
endforeach ()
file(GLOB files ix/ixtest_*.cc)
foreach (file ${files})
get_filename_component(name ${file} NAME_WE)
add_executable(${name} ${file})
target_link_libraries(${name} IX RM RBFM PFM)
endforeach ()
file(GLOB files qe/qetest_*.cc)
foreach (file ${files})
get_filename_component(name ${file} NAME_WE)
add_executable(${name} ${file})
target_link_libraries(${name} QE IX RM RBFM PFM)
endforeach ()
#file(GLOB files cli/cli_example_*.cc)
#foreach (file ${files})
# get_filename_component(name ${file} NAME_WE)
# add_executable(${name} ${file})
# target_link_libraries(${name} CLI QE IX RM RBFM PFM)
#endforeach ()
#add_executable(cli_start cli/start.cc)