1cmake_minimum_required(VERSION 3.5) 2 3# project name 4project (scudo_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() 14 15file(GLOB TESTCASES_C src/*.c ) 16foreach(srcfile_c ${TESTCASES_C}) 17 get_filename_component(testname_c ${srcfile_c} NAME_WE) 18 add_executable(${testname_c} ${srcfile_c}) 19 # include_directories("${PROJECT_SOURCE_DIR}/include") 20endforeach()