From 0850ff27a0916587fab57c2e48e4fe9c6c21a377 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 29 Aug 2024 12:06:17 +0200 Subject: CMake: Make the data files show up in the IDE Using a custom target which should otherwise not affect the build. --- data/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'data') 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) -- cgit v1.2.3-70-g09d2