cmake_minimum_required(VERSION 3.14)
project(task-manager-pro-demo LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Real PermitCore C++ SDK. In the monorepo this points at the SDK's own directory; when this demo
# is downloaded (see PermitCore.Api/Controllers/DemoController.cs), the zip rewrites this path to
# the self-contained sibling layout "../permitcore-sdk" — same role as the Node demo's relative
# require() or the Java demo's systemPath jar reference. This is exactly the pattern the SDK's own
# README documents ("add_subdirectory(SDKs/cpp)"). A binary_dir must be given explicitly since the
# SDK's source dir is not a subdirectory of this project's own tree.
add_subdirectory(../permitcore-sdk ${CMAKE_BINARY_DIR}/permitcore-sdk-build)

add_executable(task_manager_pro src/main.cpp)
target_link_libraries(task_manager_pro PRIVATE permitcore)

# POSIX sockets only (Linux/macOS) — no Windows/Winsock support. Run it under WSL/a Linux
# container/macOS; see README for the Docker-based build/run this demo was verified with.
