summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-29 12:06:17 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-31 11:30:20 +0200
commit0850ff27a0916587fab57c2e48e4fe9c6c21a377 (patch)
tree692b6c3bc502ce168a8c3f0a2ecff6490f8f90c8 /data
parent7df86c159a1c069cd1ffb59f8ec3f4273b84c42a (diff)
downloadmana-0850ff27a0916587fab57c2e48e4fe9c6c21a377.tar.gz
mana-0850ff27a0916587fab57c2e48e4fe9c6c21a377.tar.bz2
mana-0850ff27a0916587fab57c2e48e4fe9c6c21a377.tar.xz
mana-0850ff27a0916587fab57c2e48e4fe9c6c21a377.zip
CMake: Make the data files show up in the IDE
Using a custom target which should otherwise not affect the build.
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 2ec887cc..cda330c7 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,2 +1,20 @@
+file(GLOB_RECURSE DATA_FILES
+ fonts/*.ttf
+ graphics/*.png
+ graphics/*.xml
+ help/*.txt
+ icons/*.hqx
+ icons/*.icns
+ icons/*.ico
+ icons/*.png
+ icons/*.svg
+ icons/*.xpm
+ music/*.ogg
+ sfx/*.ogg
+ sfx/*.wav)
+
+# Add a custom target to make sure the data files are visible in IDEs
+add_custom_target(data SOURCES ${DATA_FILES})
+
install(DIRECTORY fonts graphics help icons music sfx
DESTINATION ${CMAKE_INSTALL_DATADIR}/data)