cmake_minimum_required(VERSION 3.21)

# set the project name
project(readerdetector VERSION 1.0 LANGUAGES CXX)

if(PROJECT_IS_TOP_LEVEL)
    find_package(ilreaders REQUIRED)
endif()

# add the ILReaders library
include_directories(${HEADERS_DIRECTORY})

# add the executable
add_executable(${PROJECT_NAME} 
    ${PROJECT_SOURCE_DIR}/main.cpp
    ${HEADERS_DIRECTORY}/ilr_cpp_helpers.cpp)

# Find and link library
target_link_libraries(${PROJECT_NAME} PRIVATE ilreaders::ilreaders)

