2019-08-25 21:44:26 +02:00
|
|
|
add_custom_target(glib-resources DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/resources.c")
|
2018-05-18 18:47:19 +02:00
|
|
|
add_custom_command(DEPENDS
|
2019-08-25 21:44:26 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/*.glade"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/resources.xml"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/color-palette.txt"
|
2018-05-18 18:47:19 +02:00
|
|
|
OUTPUT
|
2019-08-25 21:44:26 +02:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/resources.c"
|
2018-05-18 18:47:19 +02:00
|
|
|
COMMAND
|
|
|
|
glib-compile-resources --target="${CMAKE_CURRENT_BINARY_DIR}/resources.c" --sourcedir="${CMAKE_CURRENT_SOURCE_DIR}" --generate-source "${CMAKE_CURRENT_SOURCE_DIR}/resources.xml"
|
|
|
|
)
|