GSchemaCommonRules.cmake added.

master
Kolan Sh 7 years ago
parent bcf06bedc5
commit e294fa055e
  1. 8
      GSchemaCommonRules.cmake

@ -0,0 +1,8 @@
SET (GSCHEMAS_INSTALL_DIR "share/glib-2.0/schemas")
SET (GSCHEMAS_TARGET_DIR "${CMAKE_BINARY_DIR}/${GSCHEMAS_INSTALL_DIR}")
FILE (MAKE_DIRECTORY "${GSCHEMAS_TARGET_DIR}")
EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${GSCHEMAS_TARGET_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
INSTALL (FILES "${GSchemaFile}" DESTINATION "${GSCHEMAS_INSTALL_DIR}")
IF (WIN32)
INSTALL (FILES "${GSCHEMAS_TARGET_DIR}/gschemas.compiled" DESTINATION "${GSCHEMAS_INSTALL_DIR}")
ENDIF (WIN32)
Loading…
Cancel
Save