1cmake_minimum_required(VERSION 3.5) 2 3# project name 4project (asan_test) 5 6set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../exe) 7 8# Add executable 9file(GLOB TESTCASES src/*.cpp) 10foreach(srcfile ${TESTCASES}) 11 get_filename_component(testname ${srcfile} NAME_WE) 12 add_executable( ${testname} ${srcfile}) 13endforeach(add_subdirectory(src/init-order)) 14 15add_subdirectory(src/init-order) 16