gnucash/common/cmake_modules/CMakeLists.txt
Geert Janssens a543143689 Generate the gresource xml file based on a list of resources
This inverts the logic from
- having an xml file and extracting dependencies
  from it to
- having a list of dependencies and generating
  an xml file from it

In the original configuration adding or removing a
resource to/from the gresources.xml file would not
be detected by cmake as a change in dependencies.
The user would have to remember to rerun cmake manually.
By explicitly listing the dependencies, cmake will
properly recongifure and regenerate if that list is
updated. The remainder of the dependency configuration
also ensures proper rebuilds of gnucash, libaqbanking
and libofx if any of the resource files change, a new
one is added or an existing one is removed.

For reusability the code to generate the gresource related
files as been extracted into a separate function.
2023-01-01 15:06:42 +01:00

17 lines
389 B
CMake

set(cmake_FILES
GncAddGSchemaTargets.cmake
GncAddSchemeTargets.cmake
GncAddSwigCommand.cmake
GncAddTest.cmake
GncFindLibm.cmake
GncGenerateGResources.cmake
MacroAddSourceFileCompileFlags.cmake
MacroAppendForeach.cmake
MakeDist.cmake
MakeDistFiles.cmake
MakeDistCheck.cmake
)
set_dist_list(cmake_modules_DIST CMakeLists.txt COPYING-CMAKE-SCRIPTS.txt ${cmake_FILES})