summaryrefslogtreecommitdiffstats
path: root/tdeio/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-01-11 01:53:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-01-11 01:53:29 +0100
commit026a0ccdcdd054f227682f7e37dceef68173c6f9 (patch)
tree92fa82d9bb0386866883da54c86640f8efa3d13c /tdeio/CMakeLists.txt
parent1540a5aade3a4182204ec547eca6cb81a8b521fb (diff)
downloadtdelibs-026a0ccdcdd054f227682f7e37dceef68173c6f9.tar.gz
tdelibs-026a0ccdcdd054f227682f7e37dceef68173c6f9.zip
Compile MIME magic file
This partially resolves Bug 2217 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeio/CMakeLists.txt')
-rw-r--r--tdeio/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/tdeio/CMakeLists.txt b/tdeio/CMakeLists.txt
index c561e8294..0762a056f 100644
--- a/tdeio/CMakeLists.txt
+++ b/tdeio/CMakeLists.txt
@@ -36,7 +36,17 @@ link_directories(
##### other data ################################
-install( FILES tdeio.magic DESTINATION ${CONFIG_INSTALL_DIR}/magic )
+add_custom_command(
+ OUTPUT tdeio.magic.mgc
+ COMMAND file -C -m ${CMAKE_CURRENT_SOURCE_DIR}/tdeio.magic
+)
+
+add_custom_target(
+ tdeio_magic_mgc
+ ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tdeio.magic.mgc
+)
+
+install( FILES tdeio.magic ${CMAKE_CURRENT_BINARY_DIR}/tdeio.magic.mgc DESTINATION ${CONFIG_INSTALL_DIR}/magic )
install( FILES
application.desktop kurifilterplugin.desktop