> ADD_EXECUTABLE(main .) > Linking CXX executable main > /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function > `_start': > (.text+0x20): undefined reference to `main' > collect2: ld returned 1 exit status > make[2]: *** [main] Error 1 > make[1]: *** [CMakeFiles/main.dir/all] Error 2 > make: *** [all] Error 2 > > i have main.c at .
But you have not told CMake it should put it main.c into the executable! ADD_EXECUTABLE(main main.c) I'm also not sure what you do with all those INCLUDE() and AUX_* stuff. You probably got something totally wrong about how CMake works. Eike _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
