From 5dded633b8cb5a1a89327b15a3a7061ae50f1231 Mon Sep 17 00:00:00 2001 From: "Oleg E. Peil" Date: Thu, 24 Mar 2016 11:40:12 +0100 Subject: [PATCH] Fixed CMake scripts to properly add a c++ library First of all, 'c++/plovasp/atm' was erroneously removed after the last merge with the upstream branch. Now, the whole subdirectory 'c++' is added. Also, C++ flags are properly imported from the TRIQS configuration. --- CMakeLists.txt | 6 ++++++ c++/CMakeLists.txt | 1 + 2 files changed, 7 insertions(+) create mode 100644 c++/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index cea7e048..f883b30e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,12 @@ endif(${GIT_RESULT} EQUAL 0) set(CMAKE_INSTALL_PREFIX ${TRIQS_PATH}) add_subdirectory(fortran/dmftproj) + +# Add the compiling options (-D... ) for C++ +message(STATUS "TRIQS : Adding compilation flags detected by the library (C++11/14, libc++, etc...) ") +add_definitions(${TRIQS_CXX_DEFINITIONS}) + +add_subdirectory(c++) add_subdirectory(python) add_subdirectory(shells) add_subdirectory(test) diff --git a/c++/CMakeLists.txt b/c++/CMakeLists.txt new file mode 100644 index 00000000..30655944 --- /dev/null +++ b/c++/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(plovasp/atm)