Skip to content

Instantly share code, notes, and snippets.

@nurpax
Last active December 20, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurpax/1927b189bccdac1fbf6389a47c8a7fab to your computer and use it in GitHub Desktop.
Save nurpax/1927b189bccdac1fbf6389a47c8a7fab to your computer and use it in GitHub Desktop.
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