diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-07 18:59:54 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-05-10 10:12:21 +0900 |
commit | 199d48de5c43ab5da32fdfe2006f9d89bd4b6d17 (patch) | |
tree | aad515de6f834996717e6081de9345e691208164 /src/data | |
parent | ee905d21f182005df07129483be48f35292856fe (diff) | |
download | piklab-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.txt | 31 | ||||
-rw-r--r-- | src/data/app_data/CMakeLists.txt | 17 |
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 +) |