-- This is BINARY dir /home/cui/ctest/cmake/backup/t1
-- This is SOURCE dir /home/cui/ctest/cmake/backup/t1
-- Configuring done
CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE):
Cannot find source file:
SRC_LIST
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: hello
CMake Error: Cannot determine link language for target "hello".
-- Generating done
-- Build files have been written to: /home/cui/ctest/cmake/backup/t1
the solving method of the problem :
ADD_EXECUTABLE(hello SRC_LIST)
add_executable(main ${PROJECT_SOURCE_DIR}/main.cpp)