Commit 907f4c80 authored by Alexander Baumstark's avatar Alexander Baumstark
Browse files

Updated CMakeLists.txt

parent 3286ff45
cmake_minimum_required(VERSION 3.16)
project(arrow)
find_package(Arrow REQUIRED)
cmake_minimum_required(VERSION 3.15)
project(arrow_db)
set(CMAKE_CXX_STANDARD 17)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
include_directories(${_VCPKG_INSTALLED_DIR}/x64-windows/include)
link_directories(${_VCPKG_INSTALLED_DIR}/x64-windows/lib)
add_library(cs_lib
lib/core/Core.cpp
lib/core/Core.h
......@@ -17,17 +18,20 @@ add_library(cs_lib
lib/database/Database.cpp
lib/database/Database.cpp
lib/index/Comparer.h
lib/index/Index.h lib/database/Query.cpp lib/database/Query.h lib/database/btree.h)
lib/index/Index.h
lib/database/Query.cpp
lib/database/Query.h
lib/database/btree.h)
target_include_directories (cs_lib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(arrow main.cpp)
add_executable(arrow_db main.cpp)
target_link_libraries(arrow LINK_PUBLIC cs_lib arrow_shared ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(arrow_db LINK_PUBLIC cs_lib arrow ${CMAKE_THREAD_LIBS_INIT})
add_executable(bench bench/db_bench.cpp)
target_link_libraries(bench cs_lib arrow_shared ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(bench arrow ${CMAKE_THREAD_LIBS_INIT})
Include(FetchContent)
......@@ -39,4 +43,5 @@ FetchContent_Declare(
FetchContent_MakeAvailable(Catch2)
add_executable(tests test/database_test.cpp test/index_test.cpp test/query_test.cpp)
target_link_libraries(tests cs_lib arrow_shared ${CMAKE_THREAD_LIBS_INIT} Catch2::Catch2 )
target_link_libraries(tests cs_lib arrow ${CMAKE_THREAD_LIBS_INIT} Catch2::Catch2 )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment