summaryrefslogtreecommitdiffstats
path: root/src/devices/mem24
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-05-07 18:59:54 +0900
committerMichele Calgaro <[email protected]>2024-05-10 10:25:20 +0900
commitdc5b11fc7d45bfeabd0866b8821fefbfc7fd1209 (patch)
tree5774d9f9cb72172ba61ded3344e43577f9baf227 /src/devices/mem24
parentd5d77862d18d9246d246969afc869713877f80fc (diff)
downloadpiklab-dc5b11fc7d45bfeabd0866b8821fefbfc7fd1209.tar.gz
piklab-dc5b11fc7d45bfeabd0866b8821fefbfc7fd1209.zip
CMake conversion
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 199d48de5c43ab5da32fdfe2006f9d89bd4b6d17)
Diffstat (limited to 'src/devices/mem24')
-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
7 files changed, 54 insertions, 0 deletions
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
+)