ABI in gschema.xml

This commit is contained in:
Kolan Sh 2015-10-24 19:33:30 +03:00
parent 972b5e5d88
commit 4b74a70c28
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ SET (GSCHEMAS_INSTALL_DIR "share/glib-2.0/schemas")
SET (GSCHEMAS_TARGET_DIR "${CMAKE_BINARY_DIR}/${GSCHEMAS_INSTALL_DIR}") SET (GSCHEMAS_TARGET_DIR "${CMAKE_BINARY_DIR}/${GSCHEMAS_INSTALL_DIR}")
FILE (MAKE_DIRECTORY "${GSCHEMAS_TARGET_DIR}") FILE (MAKE_DIRECTORY "${GSCHEMAS_TARGET_DIR}")
EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${GSCHEMAS_TARGET_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${GSCHEMAS_TARGET_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
INSTALL (FILES "${GSchemaFile}" DESTINATION "${GSCHEMAS_INSTALL_DIR}") INSTALL (FILES "${GSchemaFile}.gschema.xml" DESTINATION "${GSCHEMAS_INSTALL_DIR}" RENAME "${GSchemaFile}-${MAJOR}.gschema.xml")
IF (WIN32) IF (WIN32)
INSTALL (FILES "${GSCHEMAS_TARGET_DIR}/gschemas.compiled" DESTINATION "${GSCHEMAS_INSTALL_DIR}") INSTALL (FILES "${GSCHEMAS_TARGET_DIR}/gschemas.compiled" DESTINATION "${GSCHEMAS_INSTALL_DIR}")
ENDIF (WIN32) ENDIF (WIN32)