From: JungYumin Date: Thu, 16 May 2013 07:17:34 +0000 (+0900) Subject: (TDIS-5787)Fixed CMakelist to write information of osp-image.pc X-Git-Tag: accepted/tizen/20130925.002707~2^2~13 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fframework%2Fnative%2Fimage.git;a=commitdiff_plain;h=06a2cc8fd8f78ce414e67fa89dd9889f283c6597 (TDIS-5787)Fixed CMakelist to write information of osp-image.pc Change-Id: If887625a4783c27f90f25432a36dd32efcc83f8e Signed-off-by: JungYumin --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f1400f..86301d4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +SET(CMAKE_INSTALL_PREFIX /usr) +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) + SET (this_target osp-image) SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output) @@ -93,6 +96,10 @@ INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h") INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/inc/ DESTINATION include/osp/media FILES_MATCHING PATTERN "*.h") +SET(PC_NAME ${this_target}) +SET(PC_REQUIRED ${pc_requires}) +SET(PC_LDFLAGS -l${this_target}) + # pkgconfig file CONFIGURE_FILE(${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY) INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION lib/pkgconfig)