I have found this sample program for CMake:
cmake_minimum_required (VERSION 2.6)
project (Tutorial)
add_library(Tutorial tutorial.cxx)
However, im trying to get my entire project onto cmake that includes alot of librarys and source files, how should i go about adding an entire directory instead of just "tutorial.cxx"?