cmake_minimum_required(VERSION 3.15) project(testprog) xp_init() add_executable(testprog testprog.cpp ) # use the static multithreaded C library set_property(TARGET testprog PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")