ADD_DEFINITIONS( -D_FILE_OFFSET_BITS=64 )
ADD_DEFINITIONS( -DVERSION=\\\"${VERSION}\\\" )
+CONFIGURE_FILE( src/satversion.h.in src/satversion.h )
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "SAT Solver library")
SET(CPACK_PACKAGE_VENDOR "Novell Inc.")
poolid.h pooltypes.h queue.h solvable.h solver.h solverdebug.h
repo.h repodata.h repopage.h repo_solv.h util.h
strpool.h dirpool.h knownid.h transaction.h rules.h problems.h
- chksum.h md5.h sha1.h sha2.h)
+ chksum.h md5.h sha1.h sha2.h satversion.h)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
--- /dev/null
+/*
+ * Copyright (c) 2007, Novell Inc.
+ *
+ * This program is licensed under the BSD license, read LICENSE.BSD
+ * for further information
+ */
+
+/*
+ * satversion.h
+ *
+ */
+
+#ifndef SATSOLVER_SATVERSION_H
+#define SATSOLVER_SATVERSION_H
+
+#define SATSOLVER_VERSION_STRING "@VERSION@"
+#define SATSOLVER_VERSION_MAJOR @LIBSATSOLVER_MAJOR@
+#define SATSOLVER_VERSION_MINOR @LIBSATSOLVER_MINOR@
+#define SATSOLVER_VERSION_PATCH @LIBSATSOLVER_PATCH@
+#define SATSOLVER_VERSION (SATSOLVER_VERSION_MAJOR * 10000 + SATSOLVER_VERSION_MINOR * 100 + SATSOLVER_VERSION_PATCH)
+
+#endif