cmake_minimum_required(VERSION 3.15)
project(test_package CXX)

find_package(EAAssert REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} EAAssert::EAAssert)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)

# Force the assert path on regardless of build_type - we're testing the failure-callback mechanism
# itself, not whether asserts happen to be enabled for this configuration.
target_compile_definitions(${PROJECT_NAME} PRIVATE EA_ASSERT_ENABLED=1)
