cmake_minimum_required(VERSION 3.20)
project(tsfile_private_thread_sampler LANGUAGES CXX)
add_executable(thread_sampler thread_sampler.cc)
target_compile_features(thread_sampler PRIVATE cxx_std_14)
target_compile_definitions(thread_sampler PRIVATE UNICODE _UNICODE NOMINMAX)
target_compile_options(thread_sampler PRIVATE /utf-8 /W4)
target_link_libraries(thread_sampler PRIVATE dbghelp psapi)
