Skip to content
Snippets Groups Projects
Commit 7bc65330 authored by Lars Bilke's avatar Lars Bilke
Browse files

Added InfoLib.

parent ab42cfbd
No related branches found
No related tags found
No related merge requests found
/**
* \brief CMake information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "InfoLib/CMakeInfo.h"
namespace CMakeInfoLib
{
namespace CMakeInfo
{
const std::string cmake_args("@CMAKE_ARGS_ESCAPED@");
}
}
/**
* \brief CMake information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <string>
#include "cmakeinfolib_export.h"
namespace CMakeInfoLib
{
namespace CMakeInfo
{
extern CMAKEINFOLIB_EXPORT const std::string cmake_args;
} // namespace
} // namespace
foreach(lib
Compiler
Git
CMake
Test)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${lib}Info.cpp.in
${CMAKE_CURRENT_BINARY_DIR}/${lib}Info.cpp @ONLY)
add_library(${lib}InfoLib ${CMAKE_CURRENT_BINARY_DIR}/${lib}Info.cpp
${lib}Info.h)
include(GenerateExportHeader)
generate_export_header(${lib}InfoLib)
target_include_directories(${lib}InfoLib PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
endforeach(lib)
/**
* \brief Build information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "InfoLib/CompilerInfo.h"
namespace CompilerInfoLib
{
namespace CompilerInfo
{
const std::string cmake_cxx_compiler("@CMAKE_CXX_COMPILER@");
const std::string cmake_cxx_flags("@CMAKE_CXX_FLAGS@");
const std::string cmake_cxx_flags_release("@CMAKE_CXX_FLAGS_RELEASE@");
const std::string cmake_cxx_flags_debug("@CMAKE_CXX_FLAGS_DEBUG@");
}
}
/**
* \brief Build information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <string>
#include "compilerinfolib_export.h"
namespace CompilerInfoLib
{
namespace CompilerInfo
{
extern COMPILERINFOLIB_EXPORT const std::string cmake_cxx_compiler; // all not used
extern COMPILERINFOLIB_EXPORT const std::string cmake_cxx_flags;
extern COMPILERINFOLIB_EXPORT const std::string cmake_cxx_flags_release;
extern COMPILERINFOLIB_EXPORT const std::string cmake_cxx_flags_debug;
} // namespace BuildInfo
} // namespace BaseLib
/**
* \brief Git information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "InfoLib/GitInfo.h"
namespace GitInfoLib
{
namespace GitInfo
{
const std::string git_version_sha1_short("@GIT_SHA1_SHORT@");
const std::string ogs_version("@OGS_VERSION@");
}
}
/**
* \brief Git information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <string>
#include "gitinfolib_export.h"
namespace GitInfoLib
{
namespace GitInfo
{
extern GITINFOLIB_EXPORT const std::string git_version_sha1_short;
extern GITINFOLIB_EXPORT const std::string ogs_version;
} // namespace
} // namespace
/**
* \brief Test information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "InfoLib/TestInfo.h"
namespace TestInfoLib
{
namespace TestInfo
{
// const std::string source_path("@CMAKE_CURRENT_SOURCE_DIR@");
const std::string data_path("@Data_SOURCE_DIR@");
// const std::string data_binary_path("@Data_BINARY_DIR@");
const std::string tests_tmp_path("@PROJECT_BINARY_DIR@/Tests/");
}
}
/**
* \brief Test information.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <string>
#include "testinfolib_export.h"
namespace TestInfoLib
{
namespace TestInfo
{
// extern INFOLIB_EXPORT const std::string source_path; // not used
extern TESTINFOLIB_EXPORT const std::string data_path;
// extern INFOLIB_EXPORT const std::string data_binary_path; // not used
extern TESTINFOLIB_EXPORT const std::string tests_tmp_path;
} // namespace
} // namespace
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment