src/ilm_client.c
)
+set_target_properties(${PROJECT_NAME} PROPERTIES
+ RESOURCE "${CMAKE_BINARY_DIR}/LayerManagerClient/ilmClient/ilm.pc")
+
add_dependencies(${PROJECT_NAME}
LayerManagerUtils
ilmCommon
target_link_libraries(${PROJECT_NAME} ${LIBS})
+configure_file(ilm.pc.in ilm.pc @ONLY)
+
+if(NOT PKG_CONFIG_INSTALL_LIBDIR)
+ include(FindPkgConfig)
+ execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=pc_path pkg-config OUTPUT_VARIABLE PC_PATHS)
+ string(REPLACE ":" ";" PC_PATHS ${PC_PATHS})
+ list(GET PC_PATHS 0 PKG_CONFIG_INSTALL_LIBDIR)
+endif(NOT PKG_CONFIG_INSTALL_LIBDIR)
+
install (
TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION lib
+ RESOURCE DESTINATION ${PKG_CONFIG_INSTALL_LIBDIR}
)
install (
--- /dev/null
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: ilm
+Description: ilm Client
+Version: @ILM_VERSION@
+Requires: dbus-1
+Libs: -L${libdir} -lilmClient
+Cflags: -I${includedir}/ilm