Remove priviledge check for powermanager.
[platform/framework/native/appfw.git] / src / osp-string / CMakeLists.txt
1 SET(LOCALE_ROOT_PATH "${ROOT_DIR}/target/generic/root/usr/share/locale")
2
3 FILE(GLOB _pofiles *.po)
4
5 FOREACH(_file ${_pofiles})
6         GET_FILENAME_COMPONENT(_in ${_file} ABSOLUTE)
7         GET_FILENAME_COMPONENT(_basename ${_file} NAME_WE)
8
9         SET(_out "${LOCALE_ROOT_PATH}/${_basename}/LC_MESSAGES/osp.mo")
10
11         ADD_CUSTOM_COMMAND(
12                 OUTPUT ${_out}
13                 COMMENT "Generating ${_out}"
14                 COMMAND mkdir -p ${LOCALE_ROOT_PATH}/${_basename}/LC_MESSAGES
15                 COMMAND msgfmt -o ${_out} ${_in}
16                 DEPENDS ${_in}
17                 )
18
19         SET(mo_files ${mo_files} ${_out})
20
21         #INSTALL(FILES ${_out} DESTINATION "${_out}")
22 ENDFOREACH(_file ${_pofiles})
23
24 ADD_CUSTOM_TARGET(osp-string ALL DEPENDS ${mo_files})
25
26
27