-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forked from krivenko/pomerol2triqs, Commits on Oct 2, 2017, d63b3fab2…
…e8fc3bb28d2b99976fba84eebfa7401
- Loading branch information
0 parents
commit f707a09
Showing
28 changed files
with
2,981 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,45 @@ | ||
BasedOnStyle: LLVM | ||
|
||
AccessModifierOffset: 0 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlinesLeft: false | ||
AlignOperands: false | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: false | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Attach | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakStringLiterals: false | ||
ColumnLimit: 150 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 3 | ||
ContinuationIndentWidth: 3 | ||
Cpp11BracedListStyle: true | ||
DerivePointerBinding : false | ||
IndentCaseLabels: true | ||
IndentWidth: 2 | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation : All | ||
PointerAlignment: Right | ||
ReflowComments: false | ||
SortIncludes: false | ||
SpaceAfterControlStatementKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceInEmptyParentheses: false | ||
SpacesInParentheses: false | ||
Standard: Cpp11 | ||
TabWidth: 2 | ||
UseTab: Never |
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,60 @@ | ||
# Start configuration | ||
cmake_minimum_required(VERSION 2.8.7) | ||
|
||
# Version number of the application | ||
project(pomerol2triqs CXX) | ||
set(POMEROL2TRIQS_VERSION "0.1") | ||
|
||
# Build the optimized version by default | ||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Release) | ||
endif() | ||
|
||
# We use shared libraries | ||
option(BUILD_SHARED_LIBS "Build shared libraries" ON) | ||
|
||
# Append TRIQS installed files to the cmake load path | ||
list(APPEND CMAKE_MODULE_PATH ${TRIQS_PATH}/share/triqs/cmake) | ||
# Append Pomerol installed files to the cmake load path | ||
list(APPEND CMAKE_MODULE_PATH ${POMEROL_PATH}/share/pomerol/cmake) | ||
|
||
# Load TRIQS, including all predefined variables from TRIQS installation | ||
find_package(TRIQS REQUIRED) | ||
|
||
if(NOT TRIQS_VERSION EQUAL 1.5) | ||
message(FATAL_ERROR "The application requires the TRIQS library version 1.5 (got ${TRIQS_VERSION})") | ||
endif() | ||
|
||
# Load Pomerol | ||
find_package(pomerol REQUIRED) | ||
|
||
# Find MPI | ||
find_package(MPI) | ||
|
||
# Get hash | ||
triqs_get_git_hash(${CMAKE_SOURCE_DIR} "POMEROL2TRIQS") | ||
if(${GIT_RESULT} EQUAL 0) | ||
message(STATUS "Hash: ${POMEROL2TRIQS_GIT_HASH}") | ||
endif(${GIT_RESULT} EQUAL 0) | ||
|
||
# We want to be installed in the TRIQS tree | ||
set(CMAKE_INSTALL_PREFIX ${TRIQS_PATH}) | ||
|
||
message(STATUS "TRIQS : Adding compilation flags detected by the library") | ||
add_definitions(${TRIQS_CXX_DEFINITIONS}) | ||
|
||
option(Tests "Enable Tests" ON) | ||
|
||
include_directories(c++) | ||
|
||
# Compile C++ code | ||
add_subdirectory(c++) | ||
|
||
# Python interface | ||
if (${TRIQS_WITH_PYTHON_SUPPORT}) | ||
add_subdirectory(python) | ||
if (${Tests}) | ||
enable_testing() | ||
add_subdirectory(test) | ||
endif() | ||
endif() |
Oops, something went wrong.