cmake 的有关问题
cmake 的问题
刚学用cmake,我在 g:\workspace\test 下尝试
建了一个CmakeLists.txt,内容:
和一个main.c, 内容
然后执行 cmake . 报错
我是按照那个<<cmake实践>>做的,出错是啥情况
------解决方案--------------------
mark一下,有时间也学习学习
刚学用cmake,我在 g:\workspace\test 下尝试
建了一个CmakeLists.txt,内容:
- C/C++ code
PROJECT (HELLO) SET(SRC_LIST main.c) ADD_EXECUTABLE(hello.exe SRC_LIST)
和一个main.c, 内容
- C/C++ code
m_chessdata+= _T("\r\n");//类似这样的处理一下即可
然后执行 cmake . 报错
- C/C++ code
C:\Windows\system32\cmd.exe /c cmake . -- Configuring done CMake Error at CMakeLists.txt:3 (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 -- Build files have been written to: G:/workspace/test shell returned 1 Hit any key to close this window...
我是按照那个<<cmake实践>>做的,出错是啥情况
------解决方案--------------------
mark一下,有时间也学习学习