1 2 3 4
try_compile(RESULT PROJECT TestProject SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/proj COPY_FILE result)