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/progs/psp/CMakeLists.txt | 6 ++++++ src/progs/psp/base/CMakeLists.txt | 16 ++++++++++++++++ src/progs/psp/gui/CMakeLists.txt | 6 ++++++ src/progs/psp/xml/CMakeLists.txt | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 src/progs/psp/CMakeLists.txt create mode 100644 src/progs/psp/base/CMakeLists.txt create mode 100644 src/progs/psp/gui/CMakeLists.txt create mode 100644 src/progs/psp/xml/CMakeLists.txt (limited to 'src/progs/psp') diff --git a/src/progs/psp/CMakeLists.txt b/src/progs/psp/CMakeLists.txt new file mode 100644 index 0000000..80e4ca1 --- /dev/null +++ b/src/progs/psp/CMakeLists.txt @@ -0,0 +1,6 @@ + +##### subfolders + +add_subdirectory( xml ) +add_subdirectory( base ) +add_subdirectory( gui ) diff --git a/src/progs/psp/base/CMakeLists.txt b/src/progs/psp/base/CMakeLists.txt new file mode 100644 index 0000000..aab4414 --- /dev/null +++ b/src/progs/psp/base/CMakeLists.txt @@ -0,0 +1,16 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + +##### libpsp (static) + +add_custom_command( + OUTPUT psp_data.cpp + COMMAND xml_psp_parser ${CMAKE_CURRENT_SOURCE_DIR} +) + +tde_add_library( psp STATIC_PIC AUTOMOC + SOURCES + psp.cpp psp_prog.cpp psp_serial.cpp ${CMAKE_CURRENT_BINARY_DIR}/psp_data.cpp +) diff --git a/src/progs/psp/gui/CMakeLists.txt b/src/progs/psp/gui/CMakeLists.txt new file mode 100644 index 0000000..13199cc --- /dev/null +++ b/src/progs/psp/gui/CMakeLists.txt @@ -0,0 +1,6 @@ + +##### libpspui (static) + +tde_add_library( pspui STATIC_PIC AUTOMOC + SOURCES psp_group_ui.cpp +) diff --git a/src/progs/psp/xml/CMakeLists.txt b/src/progs/psp/xml/CMakeLists.txt new file mode 100644 index 0000000..90a7495 --- /dev/null +++ b/src/progs/psp/xml/CMakeLists.txt @@ -0,0 +1,9 @@ + +##### xml_psp_parser (executable) + +tde_add_executable( xml_psp_parser AUTOMOC + SOURCES xml_psp_parser.cpp + LINK + devicelistnoui-static pic-static picbase-static picxml-static mem24-static mem24base-static mem24xml-static + xmltodata-static devicebase-static common-static tdecore-shared +) -- cgit v1.2.1