GResource rules added.
This commit is contained in:
parent
53f0f093c4
commit
d54f2ba119
|
@ -0,0 +1,10 @@
|
||||||
|
SET (REL_INSTALL_DIR "share/${PROJECT_LOWERCASE_NAME}-${MAJOR}")
|
||||||
|
SET (ABS_INSTALL_DIR "${CMAKE_BINARY_DIR}/${REL_INSTALL_DIR}")
|
||||||
|
FILE (MAKE_DIRECTORY "${ABS_INSTALL_DIR}")
|
||||||
|
EXECUTE_PROCESS (COMMAND glib-compile-resources "--target=${ABS_INSTALL_DIR}/${PROJECT_LOWERCASE_NAME}.gresource"
|
||||||
|
"--sourcedir=${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
"--generate"
|
||||||
|
"--c-name=${PROJECT_LOWERCASE_NAME}-${MAJOR}"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_LOWERCASE_NAME}.gresource.xml"
|
||||||
|
)
|
||||||
|
INSTALL (FILES "${ABS_INSTALL_DIR}/${PROJECT_LOWERCASE_NAME}.gresource" DESTINATION "${REL_INSTALL_DIR}")
|
Loading…
Reference in New Issue