summaryrefslogtreecommitdiffstats
path: root/src/devices
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/CMakeLists.txt8
-rw-r--r--src/devices/base/CMakeLists.txt9
-rw-r--r--src/devices/gui/CMakeLists.txt9
-rw-r--r--src/devices/list/CMakeLists.txt13
-rw-r--r--src/devices/mem24/CMakeLists.txt9
-rw-r--r--src/devices/mem24/base/CMakeLists.txt6
-rw-r--r--src/devices/mem24/gui/CMakeLists.txt9
-rw-r--r--src/devices/mem24/mem24/CMakeLists.txt6
-rw-r--r--src/devices/mem24/prog/CMakeLists.txt6
-rw-r--r--src/devices/mem24/xml/CMakeLists.txt7
-rw-r--r--src/devices/mem24/xml_data/CMakeLists.txt11
-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
18 files changed, 149 insertions, 0 deletions
diff --git a/src/devices/CMakeLists.txt b/src/devices/CMakeLists.txt
new file mode 100644
index 0000000..f983b75
--- /dev/null
+++ b/src/devices/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+##### subfolders
+
+add_subdirectory( base )
+add_subdirectory( gui )
+add_subdirectory( list )
+add_subdirectory( mem24 )
+add_subdirectory( pic )
diff --git a/src/devices/base/CMakeLists.txt b/src/devices/base/CMakeLists.txt
new file mode 100644
index 0000000..3a814fb
--- /dev/null
+++ b/src/devices/base/CMakeLists.txt
@@ -0,0 +1,9 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+##### libdevicebase (static)
+
+tde_add_library( devicebase STATIC_PIC AUTOMOC
+ SOURCES generic_device.cpp hex_buffer.cpp generic_memory.cpp register.cpp device_group.cpp
+)
diff --git a/src/devices/gui/CMakeLists.txt b/src/devices/gui/CMakeLists.txt
new file mode 100644
index 0000000..92882dc
--- /dev/null
+++ b/src/devices/gui/CMakeLists.txt
@@ -0,0 +1,9 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+##### libdeviceui (static)
+
+tde_add_library( deviceui STATIC_PIC AUTOMOC
+ SOURCES hex_word_editor.cpp memory_editor.cpp register_view.cpp hex_view.cpp device_group_ui.cpp
+)
diff --git a/src/devices/list/CMakeLists.txt b/src/devices/list/CMakeLists.txt
new file mode 100644
index 0000000..a5fb569
--- /dev/null
+++ b/src/devices/list/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+##### libdevicelistnoui (static)
+
+tde_add_library( devicelistnoui STATIC_PIC AUTOMOC
+ SOURCES device_list.cpp device_list_noui.cpp
+)
+
+
+##### libdevicelistui (static)
+
+tde_add_library( devicelistui STATIC_PIC AUTOMOC
+ SOURCES device_list.cpp device_list_ui.cpp
+)
diff --git a/src/devices/mem24/CMakeLists.txt b/src/devices/mem24/CMakeLists.txt
new file mode 100644
index 0000000..cb02270
--- /dev/null
+++ b/src/devices/mem24/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+##### subfolders
+
+add_subdirectory( base )
+add_subdirectory( gui )
+add_subdirectory( mem24 )
+add_subdirectory( prog )
+add_subdirectory( xml )
+add_subdirectory( xml_data )
diff --git a/src/devices/mem24/base/CMakeLists.txt b/src/devices/mem24/base/CMakeLists.txt
new file mode 100644
index 0000000..9ebe8f6
--- /dev/null
+++ b/src/devices/mem24/base/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libmem24base (static)
+
+tde_add_library( mem24base STATIC_PIC AUTOMOC
+ SOURCES mem24.cpp
+)
diff --git a/src/devices/mem24/gui/CMakeLists.txt b/src/devices/mem24/gui/CMakeLists.txt
new file mode 100644
index 0000000..1b2bdc9
--- /dev/null
+++ b/src/devices/mem24/gui/CMakeLists.txt
@@ -0,0 +1,9 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+##### libmem24ui (static)
+
+tde_add_library( mem24ui STATIC_PIC AUTOMOC
+ SOURCES mem24_hex_view.cpp mem24_memory_editor.cpp mem24_group_ui.cpp
+)
diff --git a/src/devices/mem24/mem24/CMakeLists.txt b/src/devices/mem24/mem24/CMakeLists.txt
new file mode 100644
index 0000000..a545b1c
--- /dev/null
+++ b/src/devices/mem24/mem24/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libmem24 (static)
+
+tde_add_library( mem24 STATIC_PIC AUTOMOC
+ SOURCES mem24_memory.cpp mem24_group.cpp
+)
diff --git a/src/devices/mem24/prog/CMakeLists.txt b/src/devices/mem24/prog/CMakeLists.txt
new file mode 100644
index 0000000..0173223
--- /dev/null
+++ b/src/devices/mem24/prog/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+##### libmem24prog (static)
+
+tde_add_library( mem24prog STATIC_PIC AUTOMOC
+ SOURCES mem24_prog.cpp
+)
diff --git a/src/devices/mem24/xml/CMakeLists.txt b/src/devices/mem24/xml/CMakeLists.txt
new file mode 100644
index 0000000..542db17
--- /dev/null
+++ b/src/devices/mem24/xml/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+##### mem24_xml_to_data (executable)
+
+tde_add_executable( mem24_xml_to_data AUTOMOC
+ SOURCES mem24_xml_to_data.cpp
+ LINK mem24base-static xmltodata-static devicebase-static common-static tdecore-shared
+)
diff --git a/src/devices/mem24/xml_data/CMakeLists.txt b/src/devices/mem24/xml_data/CMakeLists.txt
new file mode 100644
index 0000000..3fa1b1f
--- /dev/null
+++ b/src/devices/mem24/xml_data/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+##### libmem24xml (static)
+
+add_custom_command(
+ OUTPUT mem24_data.cpp
+ COMMAND mem24_xml_to_data ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+tde_add_library( mem24xml STATIC_PIC AUTOMOC
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/mem24_data.cpp
+)
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
+)