Commit 46d8b9d9 authored by Alexander Baumstark's avatar Alexander Baumstark
Browse files

Update CMakeLists.txt for Windows

parent 25a42221
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
......@@ -21,13 +22,13 @@ add_library(cs_lib
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 arrow_shared ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(bench arrow ${CMAKE_THREAD_LIBS_INIT})
Include(FetchContent)
......@@ -39,4 +40,4 @@ FetchContent_Declare(
FetchContent_MakeAvailable(Catch2)
add_executable(tests test/database_test.cpp test/index_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