cmake_minimum_required(VERSION 3.10)
project(continuous_query CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(gridgain REQUIRED COMPONENTS client)

# This example runs its writer on a std::thread of its own, so it needs the thread library
# regardless of what the client library links.
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_executable(continuous_query main.cpp)
target_link_libraries(continuous_query PRIVATE gridgain::client Threads::Threads)
