From: subhransu mohanty Date: Tue, 18 Sep 2018 02:46:57 +0000 (+0900) Subject: lottie/camke: use ${LIB_INSTALL_DIR} instead of hard coded lib/ path. X-Git-Tag: submit/tizen/20180918.061016^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf2d643534a5ce067c5a7100cf7346c5abd55afe;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/camke: use ${LIB_INSTALL_DIR} instead of hard coded lib/ path. Change-Id: I10152adb394df81b241afb3ca7ae34169917eb94 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fa20cf..1e9b01d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,15 +49,15 @@ SET(EXEC_DIR ${PREFIX}) SET(LIBDIR ${LIB_INSTALL_DIR}) SET(INCDIR ${PREFIX}/include) CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) #install header install(FILES inc/lottieanimation.h inc/lottieanimation_capi.h inc/lottiecommon.h DESTINATION include) #install lib install( TARGETS lottie-player EXPORT lottie-player-targets - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib + LIBRARY DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} INCLUDES DESTINATION include ) @@ -66,7 +66,7 @@ install( TARGETS lottie-player EXPORT lottie-player-targets install( EXPORT lottie-player-targets FILE lottie-playerTargets.cmake NAMESPACE lottie-player:: - DESTINATION lib/cmake/lottie-player + DESTINATION ${LIB_INSTALL_DIR}/cmake/lottie-player ) @@ -80,14 +80,14 @@ write_basic_package_version_file( configure_package_config_file(${CMAKE_CURRENT_LIST_DIR}/cmake/lottie-playerConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/lottie-playerConfig.cmake - INSTALL_DESTINATION lib/cmake/lottie-player + INSTALL_DESTINATION ${LIB_INSTALL_DIR}/cmake/lottie-player ) #Install the config, configversion and custom find modules install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lottie-playerConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/lottie-playerConfigVersion.cmake - DESTINATION lib/cmake/lottie-player + DESTINATION ${LIB_INSTALL_DIR}/cmake/lottie-player )