$ ls<br>CMakeLists.txt dummy.c<br>$ cat CMakeLists.txt<br>PROJECT(foo)<br>ADD_LIBRARY(dummy SHARED EXCLUDE_FROM_ALL dummy.c)<br>$ cmake .<br>-- Check for working C compiler: /usr/bin/gcc<br>-- Check for working C compiler: /usr/bin/gcc -- works
<br>-- Check size of void*<br>-- Check size of void* - done<br>-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br>CMake Error: Cannot find source file &quot;/root/cmake/test/EXCLUDE_FROM_ALL&quot; for target &quot;dummy&quot;
<br><br>Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>-- Configuring done<br>$<br><br>Anything I did wrong?<br>