From dc5b11fc7d45bfeabd0866b8821fefbfc7fd1209 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 7 May 2024 18:59:54 +0900 Subject: CMake conversion Signed-off-by: Michele Calgaro (cherry picked from commit 199d48de5c43ab5da32fdfe2006f9d89bd4b6d17) --- src/devices/mem24/CMakeLists.txt | 9 +++++++++ src/devices/mem24/base/CMakeLists.txt | 6 ++++++ src/devices/mem24/gui/CMakeLists.txt | 9 +++++++++ src/devices/mem24/mem24/CMakeLists.txt | 6 ++++++ src/devices/mem24/prog/CMakeLists.txt | 6 ++++++ src/devices/mem24/xml/CMakeLists.txt | 7 +++++++ src/devices/mem24/xml_data/CMakeLists.txt | 11 +++++++++++ 7 files changed, 54 insertions(+) create mode 100644 src/devices/mem24/CMakeLists.txt create mode 100644 src/devices/mem24/base/CMakeLists.txt create mode 100644 src/devices/mem24/gui/CMakeLists.txt create mode 100644 src/devices/mem24/mem24/CMakeLists.txt create mode 100644 src/devices/mem24/prog/CMakeLists.txt create mode 100644 src/devices/mem24/xml/CMakeLists.txt create mode 100644 src/devices/mem24/xml_data/CMakeLists.txt (limited to 'src/devices/mem24') 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 +) -- cgit v1.2.1