diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2017-08-17 21:01:00 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2017-08-17 21:01:00 +0900 |
commit | 857b9a762db2fef8a5b9bb0f073c541f2bfae27e (patch) | |
tree | 10981000a580be7a7c90423b0e19dfd46f3f4ac7 /CMakeLists.txt | |
parent | 6f5dddadc8219f09c3ea05dd6634c2b517249688 (diff) | |
download | rcc-857b9a762db2fef8a5b9bb0f073c541f2bfae27e.tar.gz rcc-857b9a762db2fef8a5b9bb0f073c541f2bfae27e.tar.bz2 rcc-857b9a762db2fef8a5b9bb0f073c541f2bfae27e.zip |
CBOR file in res dir and auto-naming in spec
Change-Id: Ibefe191bd86c6cb54e88df188f09959102c317ac
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 54c7f72..a496dd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(position-finder-server C) +PROJECT(${P_NAME} C) SET(INSTALL_EXEC_PREFIX "${INSTALL_PREFIX}/bin") -SET(INSTALL_RESDIR "${INSTALL_PREFIX}/res") -SET(INSTALL_OWNER_RESDIR "/home/owner/apps_rw/org.tizen.position-finder-server/res") -SET(INSTALL_OWNER_DATADIR "/home/owner/apps_rw/org.tizen.position-finder-server/data") SET(CMAKE_VERBOSE_MAKEFILE 0) SET(PROJECT_ROOT_DIR "${CMAKE_SOURCE_DIR}") @@ -23,6 +20,9 @@ pkg_check_modules(APP_PKGS REQUIRED gio-2.0 ) +ADD_DEFINITIONS(-DCBOR_FILE_IN_RES="${INSTALL_RESDIR}/${CBOR_FILE}") +ADD_DEFINITIONS(-DCBOR_FILE_IN_DATA="${INSTALL_OWNER_DATADIR}/${CBOR_FILE}") + FOREACH (flag ${APP_PKGS_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) @@ -49,12 +49,14 @@ ADD_EXECUTABLE(${PROJECT_NAME} TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} -lm) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${APP_PKGS_LDFLAGS}) +Message("APP_LABEL : ${APP_LABEL}") + +CONFIGURE_FILE(${PROJECT_ROOT_DIR}/tizen-manifest.xml.in ${ORG_PREFIX}.${PROJECT_NAME}.xml @ONLY) # Install INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${INSTALL_EXEC_PREFIX}) - -INSTALL(FILES ${PROJECT_ROOT_DIR}/tizen-manifest.xml DESTINATION ${SYS_PACKAGES_DIR} RENAME org.tizen.position-finder-server.xml) -INSTALL(DIRECTORY DESTINATION ${PREFIX}/data) -INSTALL(FILES ${PROJECT_ROOT_DIR}/shared/res/position_finder_server.png DESTINATION ${SYS_ICONS_DIR}) -INSTALL(FILES ${PROJECT_ROOT_DIR}/res/iotcon-test-svr-db-server.dat DESTINATION ${INSTALL_OWNER_RESDIR}) +INSTALL(DIRECTORY DESTINATION ${INSTALL_OWNER_DATADIR}) +INSTALL(FILES ${ORG_PREFIX}.${PROJECT_NAME}.xml DESTINATION ${SYS_PACKAGES_DIR}) +INSTALL(FILES ${PROJECT_ROOT_DIR}/shared/res/default_icon.png DESTINATION ${SYS_ICONS_DIR} RENAME ${PROJECT_NAME}.png) +INSTALL(FILES ${PROJECT_ROOT_DIR}/res/${CBOR_FILE} DESTINATION ${INSTALL_RESDIR}) # End of a file |