Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Jun 29, 2016
0 parents commit 7866df0
Show file tree
Hide file tree
Showing 96 changed files with 25,231 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
UseTab: Never
IndentWidth: 4
Language : Cpp
BreakBeforeBraces: Allman
MaxEmptyLinesToKeep: 1
IndentCaseLabels: false
NamespaceIndentation: None
AccessModifierOffset: -4
SpacesInParentheses: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
PointerAlignment: Left
Cpp11BracedListStyle: false
AllowShortIfStatementsOnASingleLine: false
AllowShortFunctionsOnASingleLine : true
AlignOperands: true
Standard: Cpp11
IndentCaseLabels: false
AlignTrailingComments : false
ConstructorInitializerAllOnOneLineOrOnePerLine : false
ColumnLimit: 110
BinPackParameters : true
BinPackArguments : true
AlwaysBreakTemplateDeclarations : true
AlignConsecutiveAssignments : true
PenaltyReturnTypeOnItsOwnLine: 50000
CommentPragmas: '^ >>>'
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# CMake files
CMakeCache.txt
CMakeFiles
CMakeScripts
Makefile
cmake_install.cmake
install_manifest.txt
CTestTestfile.cmake

# build directory
build/

# test directory
svg/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Sphinx documentation
docs/_build/

# CLion
.idea/
47 changes: 47 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (C) 2016 D Levin (http://www.kfrlib.com)
# This file is part of KFR
#
# KFR is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# KFR is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with KFR.


cmake_minimum_required(VERSION 3.0)

if (${CMAKE_GENERATOR} STREQUAL "MinGW Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "MSYS Makefiles")
if (CMAKE_BUILD_TYPE_INITIALIZED_TO_DEFAULT)
set(CMAKE_BUILD_TYPE Release)
endif ()
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_FLAGS --target=x86_64-w64-windows-gnu CACHE STRING "compile flags" FORCE)
set(CMAKE_C_FLAGS --target=x86_64-w64-windows-gnu CACHE STRING "compile flags" FORCE)
set(CMAKE_EXE_LINKER_FLAGS --target=x86_64-w64-windows-gnu)
set(CMAKE_SHARED_LINKER_FLAGS --target=x86_64-w64-windows-gnu)
set(CMAKE_STATIC_LINKER_FLAGS --target=x86_64-w64-windows-gnu)
endif ()

project(kfr)

include(sources.cmake)

add_compile_options(-std=c++1y)

set(ALL_WARNINGS -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c99-extensions -Wno-padded)

add_compile_options(-march=native)

add_subdirectory(examples)
add_subdirectory(tests)

file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/svg)

Loading

0 comments on commit 7866df0

Please sign in to comment.