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