Commit ef1cf4fc authored by Ian McInerney's avatar Ian McInerney
Browse files

Add defines to allow getting the QDLDL version in consuming software

These defines allow software that use QDLDL to get its version inside
the code.
Showing with 15 additions and 0 deletions
+15 -0
......@@ -82,6 +82,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/qdldl_types.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/qdldl_types.h
NEWLINE_STYLE LF)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/qdldl_version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/qdldl_version.h
NEWLINE_STYLE LF)
# Set sources
# ----------------------------------------------
......@@ -94,6 +98,7 @@ set(
qdldl_headers
include/qdldl.h
include/qdldl_types.h
include/qdldl_version.h
)
# Create object library
......
#ifndef QDLDL_VERSION_H_
#define QDLDL_VERSION_H_
#define QDLDL_VERSION_MAJOR @QDLDL_VERSION_MAJOR@
#define QDLDL_VERSION_MINOR @QDLDL_VERSION_MINOR@
#define QDLDL_VERSION_PATCH @QDLDL_VERSION_PATCH@
#endif // #ifndef QDLDL_VERSION_H_
qdldl_types.h
qdldl_version.h
......@@ -3,6 +3,7 @@
// Include qdldl type options
#include "qdldl_types.h"
#include "qdldl_version.h"
# ifdef __cplusplus
extern "C" {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment