From be6977a3ed7c2ad9d21d61dffec35d1be7914f78 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Wed, 4 Sep 2013 16:54:12 +0200 Subject: [PATCH] Check version and add README modified: CMakeLists.txt new file: README.txt --- CMakeLists.txt | 9 +++++++++ README.txt | 29 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 README.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 414c5264..5d80f3c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,7 @@ +# Version number of the application +set (DFT_TOOLS_VERSION "1.0") +set (DFT_TOOLS_RELEASE "1.0.0") + # Append triqs installed files to the cmake load path list(APPEND CMAKE_MODULE_PATH ${TRIQS_PATH}/share/triqs/cmake) @@ -14,6 +18,11 @@ if (NOT ${TRIQS_WITH_PYTHON_SUPPORT}) MESSAGE(FATAL_ERROR "Wien2TRIQS require Python support in TRIQS") endif() +# Check that versions are compatible +if(NOT DFT_TOOLS_VERSION EQUAL TRIQS_VERSION) + message(FATAL_ERROR "The application version is not compatible with the TRIQS library (TRIQS library version: ${TRIQS_VERSION} while this application version: ${DFT_TOOLS_VERSION})") +endif() + # We want to be installed in the TRIQS tree set(CMAKE_INSTALL_PREFIX ${TRIQS_PATH}) diff --git a/README.txt b/README.txt new file mode 100644 index 00000000..e1d0b102 --- /dev/null +++ b/README.txt @@ -0,0 +1,29 @@ + +Wien2TRIQS interface to Wien2k +Copyright (C) 2011-2013, M. Aichhorn, L. Pourovskii, V. Vildosola and C. Martins + +1. Documentation + +You will find the documentation of this application under +. + +2. Installation + +The installation steps are described in + + +3. Version + +You can find the version and release number of the application on the top of +the CMakeLists.txt file in this directory. + +4. License + +This application 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 (see ). + +It 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.