Eobj: Add pkg-config file and start installing stuff.

SVN revision: 70233
This commit is contained in:
Tom Hacohen 2012-04-16 15:27:32 +00:00
parent 8c40b3de26
commit 7bcda618a2
3 changed files with 26 additions and 0 deletions

View File

@ -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")

13
legacy/eobj/eobj.pc.in Normal file
View File

@ -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@
~

View File

@ -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")