Skip to content

Commit

Permalink
Add triqs_ctseg repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jun 28, 2024
1 parent d90678e commit f3aadc2
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@
path = triqs_Nevanlinna
url = https://github.com/triqs/Nevanlinna
branch = unstable
[submodule "triqs_ctseg"]
path = triqs_ctseg
url = https://github.com/triqs/ctseg
2 changes: 1 addition & 1 deletion Dockerfile.package-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ENV CC=gcc-12 CXX=g++-12 \
COPY . $SRC/
RUN set -ex ; \
mkdir -p $REPO ; \
for pkg in triqs triqs_dft_tools omegamaxent_interface triqs_tprf triqs_maxent triqs_hubbardI triqs_hartree_fock triqs_Nevanlinna ; do \
for pkg in triqs triqs_ctseg triqs_dft_tools omegamaxent_interface triqs_tprf triqs_maxent triqs_hubbardI triqs_hartree_fock triqs_Nevanlinna ; do \
mkdir $BUILD/$pkg ; \
cd $BUILD/$pkg ; \
cmake $SRC/$pkg -DBUILD_DEBIAN_PACKAGE=1 -DCMAKE_INSTALL_PREFIX=$INSTALL ; \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.package-noble
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ENV CC=gcc CXX=g++ \
COPY . $SRC/
RUN set -ex ; \
mkdir -p $REPO ; \
for pkg in triqs triqs_dft_tools omegamaxent_interface triqs_tprf triqs_maxent triqs_hubbardI triqs_hartree_fock triqs_Nevanlinna ; do \
for pkg in triqs triqs_ctseg triqs_dft_tools omegamaxent_interface triqs_tprf triqs_maxent triqs_hubbardI triqs_hartree_fock triqs_Nevanlinna ; do \
mkdir $BUILD/$pkg ; \
cd $BUILD/$pkg ; \
cmake $SRC/$pkg -DBUILD_DEBIAN_PACKAGE=1 -DCMAKE_INSTALL_PREFIX=$INSTALL ; \
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for (int i = 0; i < packagePlatforms.size(); i++) {
img.inside('-v /etc/passwd:/etc/passwd -v /etc/group:/etc/group') {
sh """#!/bin/bash -ex
top=\$PWD
for t in triqs triqs_cthyb triqs_dft_tools triqs_tprf triqs_maxent triqs_hubbardI triqs_hartree_fock solid_dmft triqs_Nevanlinna ; do
for t in triqs triqs_cthyb triqs_ctseg triqs_dft_tools triqs_tprf triqs_ctseg triqs_maxent triqs_hubbardI triqs_hartree_fock solid_dmft triqs_Nevanlinna ; do
mkdir \$top/test/\$t/run
cd \$top/test/\$t/run
cmake ..
Expand Down
34 changes: 34 additions & 0 deletions test/triqs_ctseg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Start configuration
cmake_minimum_required(VERSION 3.3.2 FATAL_ERROR)
cmake_policy(VERSION 3.3.2)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

project(triqs_ctseg CXX)

# Default to Release build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Type of build" FORCE)
endif()
message( STATUS "-------- BUILD-TYPE: ${CMAKE_BUILD_TYPE} --------")

# Load Dependencies
find_package(TRIQS REQUIRED)
find_package(${PROJECT_NAME} REQUIRED)

# Build googletest
add_subdirectory(/usr/src/gtest gtest EXCLUDE_FROM_ALL)

# Lift the relevant triqs_ctseg targets out of the triqs_ctseg namespace
add_library(${PROJECT_NAME}_warnings INTERFACE)

enable_testing()

# The C++ Tests
add_subdirectory(c++)

# The Python Tests
if(${TRIQS_WITH_PYTHON_SUPPORT})
add_subdirectory(python)
endif()
1 change: 1 addition & 0 deletions test/triqs_ctseg/c++
1 change: 1 addition & 0 deletions test/triqs_ctseg/python
1 change: 1 addition & 0 deletions triqs_ctseg
Submodule triqs_ctseg added at 45553d

0 comments on commit f3aadc2

Please sign in to comment.