Commit Graph

7 Commits

Author SHA1 Message Date
akallabeth
0ae7c4b52d
[cmake] refactor configuration
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
af41563d6b
[cmake] fix regeneration of config files after clean 2024-12-16 20:24:57 +01:00
akallabeth
e16085762d
[cmake,configure_file] fix change checks
* Create temporary configuration files in a different build directory
* Copy the currently required configuration file only if it is different
  from the currently set one
* Use copy_if_different for build target configuration update
2024-12-10 15:03:50 +01:00
akallabeth
180a9d7d72
[cmake,flags] print all configuration flags
Since we do not know wich configuration will be build with
multiconfiguration generators print out all C_FLAGS_XXX and
CXX_FLAGS_XXX variables
2024-12-05 09:36:26 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
57969939e3
[cmake] watch config files
As we do add configure_file output to clean target cmake configure must
be rerun. To trigger that add source and generated file to
CMAKE_CONFIGURE_DEPENDS
2024-10-17 22:27:45 +02:00
akallabeth
cfc37caeb8
[cmake] cleaning_configure_file
add a wrapper to automatically add generated files to clean target
2024-10-02 23:28:08 +02:00