diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-06-18 22:59:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-07-10 17:21:43 +0900 |
commit | bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8 (patch) | |
tree | 7a3f446098bbdaafc799fc97dd1bb998a2456252 /presets/CMakeLists.txt | |
parent | f3116341d095d1b0237f7a36d1f3511759da7b03 (diff) | |
download | tderadio-bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8.tar.gz tderadio-bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8.zip |
CMake conversion.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'presets/CMakeLists.txt')
-rw-r--r-- | presets/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/presets/CMakeLists.txt b/presets/CMakeLists.txt new file mode 100644 index 0000000..85bc5cb --- /dev/null +++ b/presets/CMakeLists.txt @@ -0,0 +1,23 @@ +file( GLOB_RECURSE _preset_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/* ) + +unset( _dirs ) +foreach( _preset_dir IN LISTS _preset_dirs ) + get_filename_component( _dir ${_preset_dir} PATH ) + list( APPEND _dirs ${_dir} ) +endforeach() +if( _dirs ) + list( SORT _dirs ) + list( REMOVE_DUPLICATES _dirs ) +endif() + +foreach( _dir IN LISTS _dirs ) + file( GLOB _krp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/*.krp ) + + if( _krp_files ) + INSTALL( + FILES ${_krp_files} + DESTINATION ${DATA_INSTALL_DIR}/tderadio/presets/${_dir} + ) + endif() +endforeach() + |