1 2 3 4 5 6 7 8 9 10
if(RunCMake_TEST MATCHES "-CMP0052") cmake_minimum_required(VERSION 3.0) else() cmake_minimum_required(VERSION 3.5) endif() project(${RunCMake_TEST} NONE) if(NOT TEST_FILE) set(TEST_FILE ${RunCMake_TEST}.cmake) endif() include(${TEST_FILE})