I have a simple C project structure:
proj/
src/
docs/
build/
tests/
lib/
Trying to write a suitable CMake file.
My attempt so far: http://pastebin.com/846ZzUev
CMake Error at CMakeLists.txt:6 (PROJECT_SOURCE_DIR): Unknown CMake command "PROJECT_SOURCE_DIR".
-- Configuring incomplete, errors occurred! See also "/path/to/proj/CMakeFiles/CMakeOutput.log".
*How do I: *
- Force a custom compiler.
- Auto-include all library folders with automatic file detection.
- (PROJECT_ROOT/src and PROJECT_ROOT/lib)