move glade files into resources inside the binary
This commit is contained in:
10
glade/CMakeLists.txt
Normal file
10
glade/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
add_custom_target(glib-resources DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/resources.c)
|
||||
add_custom_command(DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resources.xml
|
||||
OUTPUT
|
||||
${CMAKE_CURRENT_BINARY_DIR}/resources.c
|
||||
COMMAND
|
||||
echo "$(pwd)"
|
||||
COMMAND
|
||||
glib-compile-resources --target="${CMAKE_CURRENT_BINARY_DIR}/resources.c" --sourcedir="${CMAKE_CURRENT_SOURCE_DIR}" --generate-source "${CMAKE_CURRENT_SOURCE_DIR}/resources.xml"
|
||||
)
|
9
glade/resources.xml
Normal file
9
glade/resources.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource>
|
||||
<file compressed="true">main.glade</file>
|
||||
<file>layer-widget.glade</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
|
Reference in New Issue
Block a user