Add boilerplate.

master
Michael Hope 6 years ago
parent deb15272bb
commit 80a5f00ff3
  1. 2
      .clang-format
  2. 20
      CMakeLists.txt
  3. 15
      conanfile.py

@ -0,0 +1,2 @@
BasedOnStyle: Google

@ -0,0 +1,20 @@
project(cxx17)
cmake_minimum_required(VERSION 3.7)
enable_testing()
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_compile_options(-std=c++1z -Wall -Wextra -Werror -pedantic)
add_compile_options(-fdiagnostics-color -Og)
add_executable(cc11 cc11.cc)
target_link_libraries(cc11 ${CONAN_LIBS})
add_test(cc11 bin/cc11)
add_executable(cc12 cc12.cc)
target_link_libraries(cc12 ${CONAN_LIBS})
add_test(cc12 bin/cc12)

@ -0,0 +1,15 @@
from conans import ConanFile, CMake
class Cxx17(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'cmake', 'txt'
requires = (
'fmt/latest@signal9/stable',
'Catch/latest@signal9/stable',
)
build_type = 'Debug'
def build(self):
cmake = CMake(self, generator='Ninja')
cmake.configure()
cmake.build()
Loading…
Cancel
Save