cmake_minimum_required (VERSION 3.14)

# Project enumeration
project(enumeration VERSION 0.1.0 LANGUAGES CXX)

# Ensure a build type is set properly
if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type (Release, Debug, etc.)" FORCE)
endif()


# Locate and collect dependencies
find_package(otcsdk REQUIRED)

# Create an executable named enumeration
add_executable(enumeration)

# Specify the source files
target_sources(
  enumeration
    PRIVATE
      src/main.cpp
      src/SimpleEnumerationClient.cpp
)

# Specifies the include directories
target_include_directories(
  enumeration
    PRIVATE
      src
)

# Specifies the libraries to link against
target_link_libraries( 
  enumeration
    PRIVATE
      otcsdk::otcsdk
)