加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
Daniel 提交于 2021-03-19 09:41 . init
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 -g -fno-omit-frame-pointer -ledit") #-O1
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 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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化