cmake_minimum_required (VERSION 2.6) project (Tutorial) # Set the output folder where your program will be created set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}) set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}) # The following folder will be included include_directories("${PROJECT_SOURCE_DIR}") add_executable(Tutorial src/tutorial.cpp) #$ mkdir build && cd build #$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../ #$ make #$ make install