Commit 266b4403 authored by Ziirish's avatar Ziirish

fixing problems with cmake

parent 6c20dab4
find_program (MSGFMT_EXECUTABLE msgfmt)
set (APP_NAME cid)
#on cree une nouvelle cible i18n liée à la cible all.
add_custom_target (i18n ALL COMMENT “Building i18n messages.”)
......@@ -13,7 +15,7 @@ foreach (PO_INPUT ${PO_FILES})
set (MO_OUTPUT ${PO_INPUT_BASE}.gmo) # le nom du fichier en sortie.
message (STATUS " Building ${MO_OUTPUT}...")
add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/${MO_OUTPUT} ${PO_INPUT}) # appel a msgfmt.
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${MO_OUTPUT} DESTINATION ${datadir}/locale/${PO_INPUT_BASE}/LC_MESSAGES RENAME ${PACKAGE}.mo) # installation du fichier dans le bon repertoire.
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${MO_OUTPUT} DESTINATION ${datadir}/locale/${PO_INPUT_BASE}/LC_MESSAGES RENAME ${APP_NAME}.mo) # installation du fichier dans le bon repertoire.
endif()
endforeach ()
SET (BIN_NAME cid)
SET(cid_SRCS
cid-amarok2.c
......@@ -82,7 +83,7 @@ target_link_libraries (${PROJECT_NAME}
# install the program once it is built.
install(
TARGETS ${PACKAGE}
DESTINATION ${bindir})
TARGETS ${BIN_NAME}
DESTINATION bin)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment