My CMake modules, scripts, templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GSchemaCommonRules.cmake 572B

12345678
  1. SET (REL_INSTALL_DIR "share/glib-2.0/schemas")
  2. SET (ABS_INSTALL_DIR "${CMAKE_BINARY_DIR}/${REL_INSTALL_DIR}")
  3. CONFIGURE_FILE ("${GSchemaFile}.gschema.xml" "${ABS_INSTALL_DIR}/${GSchemaFile}-${MAJOR}.gschema.xml")
  4. EXECUTE_PROCESS (COMMAND glib-compile-schemas "--targetdir=${ABS_INSTALL_DIR}" "${ABS_INSTALL_DIR}")
  5. INSTALL (FILES "${ABS_INSTALL_DIR}/${GSchemaFile}-${MAJOR}.gschema.xml" DESTINATION "${REL_INSTALL_DIR}")
  6. IF (WIN32)
  7. INSTALL (FILES "${ABS_INSTALL_DIR}/gschemas.compiled" DESTINATION "${REL_INSTALL_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}")
  8. ENDIF (WIN32)