summaryrefslogtreecommitdiffstats
path: root/src/data
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-07 18:59:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-10 10:12:21 +0900
commit199d48de5c43ab5da32fdfe2006f9d89bd4b6d17 (patch)
treeaad515de6f834996717e6081de9345e691208164 /src/data
parentee905d21f182005df07129483be48f35292856fe (diff)
downloadpiklab-199d48de5c43ab5da32fdfe2006f9d89bd4b6d17.tar.gz
piklab-199d48de5c43ab5da32fdfe2006f9d89bd4b6d17.zip
CMake conversion
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/data')
-rw-r--r--src/data/CMakeLists.txt31
-rw-r--r--src/data/app_data/CMakeLists.txt17
2 files changed, 48 insertions, 0 deletions
diff --git a/src/data/CMakeLists.txt b/src/data/CMakeLists.txt
new file mode 100644
index 0000000..c998003
--- /dev/null
+++ b/src/data/CMakeLists.txt
@@ -0,0 +1,31 @@
+
+##### subfolders
+
+add_subdirectory( app_data )
+
+
+##### syntax_xml_generator (executable)
+
+tde_add_executable( syntax_xml_generator AUTOMOC
+ SOURCES syntax_xml_generator.cpp
+ LINK ${TQT_LIBRARIES}
+)
+
+add_custom_command(
+ OUTPUT asm-pic.xml coff-pic.xml
+ COMMAND syntax_xml_generator
+)
+
+add_custom_target(
+ build_time_xml_files
+ ALL DEPENDS asm-pic.xml coff-pic.xml
+)
+
+install(
+ FILES
+ coff-c-pic.xml jal-pic.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/asm-pic.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/coff-pic.xml
+ DESTINATION
+ ${DATA_INSTALL_DIR}/katepart/syntax
+)
diff --git a/src/data/app_data/CMakeLists.txt b/src/data/app_data/CMakeLists.txt
new file mode 100644
index 0000000..8006211
--- /dev/null
+++ b/src/data/app_data/CMakeLists.txt
@@ -0,0 +1,17 @@
+
+##### application data files
+
+tde_create_translated_desktop(
+ SOURCE piklab.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install(
+ FILES piklabui.rc hexeditorpartui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/piklab
+)
+
+tde_create_translated_desktop(
+ SOURCE x-piklab.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+)