2015-11-12 17:47:39 +03:00
|
|
|
SET (REL_INSTALL_DIR "share/glib-2.0/schemas")
|
|
|
|
SET (ABS_INSTALL_DIR "${CMAKE_BINARY_DIR}/${REL_INSTALL_DIR}")
|
2015-11-12 18:30:37 +03:00
|
|
|
CONFIGURE_FILE ("${GSchemaFile}.gschema.xml" "${ABS_INSTALL_DIR}/${GSchemaFile}-${MAJOR}.gschema.xml")
|
|
|
|
EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${ABS_INSTALL_DIR}" "${ABS_INSTALL_DIR}")
|
|
|
|
INSTALL (FILES "${ABS_INSTALL_DIR}/${GSchemaFile}-${MAJOR}.gschema.xml" DESTINATION "${REL_INSTALL_DIR}")
|
2015-09-30 16:25:29 +03:00
|
|
|
IF (WIN32)
|
2015-11-14 12:34:09 +03:00
|
|
|
INSTALL (FILES "${ABS_INSTALL_DIR}/gschemas.compiled" DESTINATION "${REL_INSTALL_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
2015-09-30 16:25:29 +03:00
|
|
|
ENDIF (WIN32)
|