westonpace commented on a change in pull request #22: URL: https://github.com/apache/arrow-cookbook/pull/22#discussion_r685544291
########## File path: cpp/code/CMakeLists.txt ########## @@ -0,0 +1,47 @@ +cmake_minimum_required(VERSION 3.19) +project(arrow-cookbook) + +set(CMAKE_CXX_STANDARD 17) + +# Add googletest +include(FetchContent) +FetchContent_Declare( + googletest + GIT_REPOSITORY https://github.com/google/googletest.git + GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release-1.11.0 +) +# For Windows: Prevent overriding the parent project's compiler/linker settings +set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +FetchContent_MakeAvailable(googletest) + +# Add Arrow +find_package(Arrow REQUIRED) + +# Create test targets +enable_testing() +include(GoogleTest) +add_executable( + creating_arrow_objects Review comment: Yes, definitely. Future PR though. Should be easy enough to add later. I'll create an issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
