cmake_minimum_required(VERSION 3.0)
project(threaded_crash)

find_package(Threads)
find_package(Python3 COMPONENTS Interpreter Development)

add_compile_options(-fsanitize=address -shared-libasan)
add_link_options(-fsanitize=address -shared-libasan)
add_executable(threaded_crash main.cpp)

target_link_libraries(threaded_crash PRIVATE Python3::Python ${CMAKE_THREAD_LIBS_INIT})
