summaryrefslogtreecommitdiffstats
path: root/src/devices/pic
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/devices/pic
parentee905d21f182005df07129483be48f35292856fe (diff)
downloadpiklab-199d48de5c43ab5da32fdfe2006f9d89bd4b6d17.tar.gz
piklab-199d48de5c43ab5da32fdfe2006f9d89bd4b6d17.zip
CMake conversion
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/devices/pic')
-rw-r--r--src/devices/pic/CMakeLists.txt9
-rw-r--r--src/devices/pic/base/CMakeLists.txt6
-rw-r--r--src/devices/pic/gui/CMakeLists.txt11
-rw-r--r--src/devices/pic/pic/CMakeLists.txt6
-rw-r--r--src/devices/pic/prog/CMakeLists.txt6
-rw-r--r--src/devices/pic/xml/CMakeLists.txt7
-rw-r--r--src/devices/pic/xml_data/CMakeLists.txt11
7 files changed, 56 insertions, 0 deletions
diff --git a/src/devices/pic/CMakeLists.txt b/src/devices/pic/CMakeLists.txt
new file mode 100644
index 0000000..d126bcc
--- /dev/null
+++ b/src/devices/pic/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+##### subfolders
+
+add_subdirectory( base )
+add_subdirectory( gui )
+add_subdirectory( pic )
+add_subdirectory( prog )
+add_subdirectory( xml )
+add_subdirectory( xml_data )
diff --git a/src/devices/pic/base/CMakeLists.txt b/src/devices/pic/base/CMakeLists.txt
new file mode 100644
index 0000000..83fbf63
--- /dev/null
+++ b/src/devices/pic/base/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libpicbase (static)
+
+tde_add_library( picbase STATIC_PIC AUTOMOC
+ SOURCES pic.cpp pic_config.cpp pic_protection.cpp pic_register.cpp
+)
diff --git a/src/devices/pic/gui/CMakeLists.txt b/src/devices/pic/gui/CMakeLists.txt
new file mode 100644
index 0000000..a755e0f
--- /dev/null
+++ b/src/devices/pic/gui/CMakeLists.txt
@@ -0,0 +1,11 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+##### libpicui (static)
+
+tde_add_library( picui STATIC_PIC AUTOMOC
+ SOURCES
+ pic_config_editor.cpp pic_config_word_editor.cpp pic_hex_view.cpp
+ pic_memory_editor.cpp pic_register_view.cpp pic_group_ui.cpp pic_prog_group_ui.cpp
+)
diff --git a/src/devices/pic/pic/CMakeLists.txt b/src/devices/pic/pic/CMakeLists.txt
new file mode 100644
index 0000000..4cb13e3
--- /dev/null
+++ b/src/devices/pic/pic/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libpic (static)
+
+tde_add_library( pic STATIC_PIC AUTOMOC
+ SOURCES pic_memory.cpp pic_group.cpp
+)
diff --git a/src/devices/pic/prog/CMakeLists.txt b/src/devices/pic/prog/CMakeLists.txt
new file mode 100644
index 0000000..57d987f
--- /dev/null
+++ b/src/devices/pic/prog/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libpicprog (static)
+
+tde_add_library( picprog STATIC_PIC AUTOMOC
+ SOURCES pic_prog.cpp pic_prog_specific.cpp pic_debug.cpp
+)
diff --git a/src/devices/pic/xml/CMakeLists.txt b/src/devices/pic/xml/CMakeLists.txt
new file mode 100644
index 0000000..2cb4415
--- /dev/null
+++ b/src/devices/pic/xml/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+##### pic_xml_to_data (executable)
+
+tde_add_executable( pic_xml_to_data AUTOMOC
+ SOURCES pic_xml_to_data.cpp
+ LINK picbase-static xmltodata-static devicebase-static common-static tdecore-shared
+)
diff --git a/src/devices/pic/xml_data/CMakeLists.txt b/src/devices/pic/xml_data/CMakeLists.txt
new file mode 100644
index 0000000..df4c2b2
--- /dev/null
+++ b/src/devices/pic/xml_data/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+##### libpicxml (static)
+
+add_custom_command(
+ OUTPUT pic_data.cpp
+ COMMAND pic_xml_to_data ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+tde_add_library( picxml STATIC_PIC AUTOMOC
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/pic_data.cpp
+)