9 lines
483 B
CMake
9 lines
483 B
CMake
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)
|