diff --git a/legacy/eobj/CMakeLists.txt b/legacy/eobj/CMakeLists.txt index 3a9fd4b1dd..57d241cf28 100644 --- a/legacy/eobj/CMakeLists.txt +++ b/legacy/eobj/CMakeLists.txt @@ -50,3 +50,12 @@ add_subdirectory(examples/composite_objects) add_subdirectory(tests EXCLUDE_FROM_ALL) add_subdirectory(doc) + +# PKGCONFIG file. +CONFIGURE_FILE( + "${PROJECT_SOURCE_DIR}/eobj.pc.in" + "${PROJECT_BINARY_DIR}/eobj.pc" + ) + +INSTALL(FILES "${PROJECT_BINARY_DIR}/eobj.pc" + DESTINATION "lib/pkgconfig") diff --git a/legacy/eobj/eobj.pc.in b/legacy/eobj/eobj.pc.in new file mode 100644 index 0000000000..09759ecde3 --- /dev/null +++ b/legacy/eobj/eobj.pc.in @@ -0,0 +1,13 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Eobj +Description: EFL's generic object system library. +Version: @EOBJ_VERSION@ +Libs: -L${libdir} -leobj +Libs.private: +Cflags: -I${includedir}/eobj-@EOBJ_VERSION_MAJOR@ + +~ diff --git a/legacy/eobj/lib/CMakeLists.txt b/legacy/eobj/lib/CMakeLists.txt index 37ecd6d2c9..7d73fee5f1 100644 --- a/legacy/eobj/lib/CMakeLists.txt +++ b/legacy/eobj/lib/CMakeLists.txt @@ -17,3 +17,7 @@ set_target_properties(eobj PROPERTIES set_target_properties(eobj PROPERTIES VERSION ${EOBJ_VERSION} SOVERSION ${EOBJ_VERSION_MAJOR}) set_target_properties(eobj PROPERTIES OUTPUT_NAME "eobj") + +INSTALL(TARGETS eobj DESTINATION "lib") +INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/Eobj.h" + DESTINATION "include")