forked from kfrlib/kfr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7866df0
Showing
96 changed files
with
25,231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '^ >>>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
Oops, something went wrong.