We have two libraries here, one is the gen backend and the other
is libcl runtime library. We set both initial versions to 0.1.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
PROJECT(OCL)
+set (LIBCL_VERSION_MAJOR 0)
+set (LIBCL_VERSION_MINOR 1)
+
+configure_file (
+ "src/OCLConfig.h.in"
+ "src/OCLConfig.h"
+)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
ENDIF (USE_FULSIM)
SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse --no-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ")
-SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1 ")
+SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1")
# Front end stuff we need
#INCLUDE(CMake/FindLLVM.cmake)
project (GBE)
+set (LIBGBE_VERSION_MAJOR 0)
+set (LIBGBE_VERSION_MINOR 1)
+
+configure_file (
+ "src/GBEConfig.h.in"
+ "src/GBEConfig.h"
+)
cmake_minimum_required (VERSION 2.6.0)
--- /dev/null
+// the configured options and settings for LIBGBE
+#define LIBGBE_VERSION_MAJOR @LIBGBE_VERSION_MAJOR@
+#define LIBGBE_VERSION_MINOR @LIBGBE_VERSION_MINOR@
--- /dev/null
+// the configured options and settings for LIBCL
+#define LIBCL_VERSION_MAJOR @LIBCL_VERSION_MAJOR@
+#define LIBCL_VERSION_MINOR @LIBCL_VERSION_MINOR@