cmake_minimum_required(VERSION 2.6)
project(eobj)
-set(EOBJ_VERSION_MAJOR 0)
-set(EOBJ_VERSION_MINOR 1)
-set(EOBJ_VERSION_MICRO 0)
-set(EOBJ_VERSION ${EOBJ_VERSION_MAJOR}.${EOBJ_VERSION_MINOR}.${EOBJ_VERSION_MICRO})
+set(VMAJ 0)
+set(VMIN 1)
+set(VMIC 0)
+set(PACKAGE_VERSION ${VMAJ}.${VMIN}.${VMIC})
set(PACKAGE ${CMAKE_PROJECT_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
CONFIGURE_FILE(
"${PROJECT_SOURCE_DIR}/eobj.pc.in"
"${PROJECT_BINARY_DIR}/eobj.pc"
+ @ONLY
)
INSTALL(FILES "${PROJECT_BINARY_DIR}/eobj.pc"
-#define PACKAGE "@CMAKE_PROJECT_NAME@"
+#define PACKAGE "@PACKAGE@"
#define PACKAGE_NAME PACKAGE
-#define VERSION "@EOBJ_VERSION@"
-#define VMAJ @EOBJ_VERSION_MAJOR@
-#define VMIN @EOBJ_VERSION_MINOR@
-#define VMIC @EOBJ_VERSION_MICRO@
+#define VERSION "@PACKAGE_VERSION@"
+#define VMAJ @VMAJ@
+#define VMIN @VMIN@
+#define VMIC @VMIC@
#cmakedefine HAVE___ATTRIBUTE__
#ifdef HAVE___ATTRIBUTE__
Name: Eobj
Description: EFL's generic object system library.
-Version: @EOBJ_VERSION@
+Version: @PACKAGE_VERSION@
Libs: -L${libdir} -leobj
Libs.private:
-Cflags: -I${includedir}/eobj-@EOBJ_VERSION_MAJOR@
+Cflags: -I${includedir}/eobj-@VMAJ@
~