casadi_meta.cpp
1 /*
2  * This file is part of CasADi.
3  *
4  * CasADi -- A symbolic framework for dynamic optimization.
5  * Copyright (C) 2010-2023 Joel Andersson, Joris Gillis, Moritz Diehl,
6  * KU Leuven. All rights reserved.
7  * Copyright (C) 2011-2014 Greg Horn
8  *
9  * CasADi is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 3 of the License, or (at your option) any later version.
13  *
14  * CasADi is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with CasADi; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 
26 #include "casadi_meta.hpp"
27 #include <casadi/config.h>
28 
29 namespace casadi {
30  const char* CasadiMeta::version() { return CASADI_VERSION_STRING;}
31 
32  const char* CasadiMeta::git_revision() { return CASADI_GIT_REVISION;}
33 
34  const char* CasadiMeta::git_describe() { return CASADI_GIT_DESCRIBE;}
35 
36  const char* CasadiMeta::feature_list() { return CASADI_FEATURE_LIST;}
37 
38  const char* CasadiMeta::build_type() { return CASADI_BUILD_TYPE;}
39 
40  const char* CasadiMeta::compiler_id() { return CASADI_COMPILER_ID;}
41 
42  const char* CasadiMeta::compiler() { return CASADI_COMPILER;}
43 
44  const char* CasadiMeta::compiler_flags() { return CASADI_COMPILER_FLAGS;}
45 
46  const char* CasadiMeta::modules() { return CASADI_MODULES;}
47 
48  const char* CasadiMeta::plugins() { return CASADI_PLUGINS;}
49 
50  const char* CasadiMeta::install_prefix() { return CASADI_INSTALL_PREFIX;}
51 
52  const char* CasadiMeta::shared_library_prefix() { return CASADI_SHARED_LIBRARY_PREFIX;}
53 
54  const char* CasadiMeta::shared_library_suffix() { return CASADI_SHARED_LIBRARY_SUFFIX;}
55 
56  const char* CasadiMeta::object_file_suffix() { return CASADI_OBJECT_FILE_SUFFIX;}
57 
58 } // namespace casadi
static const char * feature_list()
Obtain list of features that were compiled into this build.
Definition: casadi_meta.cpp:36
static const char * install_prefix()
Obtain install prefix.
Definition: casadi_meta.cpp:50
static const char * compiler_id()
Obtain compiler identification.
Definition: casadi_meta.cpp:40
static const char * object_file_suffix()
Obtain object file suffix.
Definition: casadi_meta.cpp:56
static const char * version()
Obtain the version number of CasADi.
Definition: casadi_meta.cpp:30
static const char * shared_library_suffix()
Obtain shared library suffix.
Definition: casadi_meta.cpp:54
static const char * git_describe()
Obtain the git description of this build.
Definition: casadi_meta.cpp:34
static const char * shared_library_prefix()
Obtain shared library prefix.
Definition: casadi_meta.cpp:52
static const char * compiler()
Obtain compiler.
Definition: casadi_meta.cpp:42
static const char * compiler_flags()
Obtain compiler flags.
Definition: casadi_meta.cpp:44
static const char * plugins()
Obtain plugins list.
Definition: casadi_meta.cpp:48
static const char * build_type()
Obtain build type: RELEASE/Debug.
Definition: casadi_meta.cpp:38
static const char * git_revision()
Obtain the git hash of this build.
Definition: casadi_meta.cpp:32
static const char * modules()
Obtain modules list.
Definition: casadi_meta.cpp:46
The casadi namespace.
Definition: archiver.cpp:28