Create a gist now

Instantly share code, notes, and snippets.

cmake c++11 project
cmake_minimum_required (VERSION 2.6)
project (example)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_executable(example main.cpp)
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": ["build"]
}
],
"build_systems":
[
{
"name": "cmake",
"shell_cmd": "make -C build",
"file_regex": "/([^/:]+):(\\d+):(\\d+): "
}
]
}
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment