From 3447bbbb3b188522f84605c1b43e0d4529c38721 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Thu, 2 Oct 2025 11:19:14 +0200 Subject: [PATCH] initial commit --- CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ GenericCore_en_US.ts | 3 +++ genericcore.cpp | 3 +++ genericcore.h | 10 ++++++++++ 4 files changed, 46 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 GenericCore_en_US.ts create mode 100644 genericcore.cpp create mode 100644 genericcore.h diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..754c89d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.16) + +project(GenericCore LANGUAGES CXX) + +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core LinguistTools) +find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core LinguistTools) + +set(TS_FILES GenericCore_en_US.ts) + +add_library(GenericCore STATIC + genericcore.cpp + genericcore.h + ${TS_FILES} +) + +target_link_libraries(GenericCore PRIVATE Qt${QT_VERSION_MAJOR}::Core) + +target_compile_definitions(GenericCore PRIVATE GENERICCORE_LIBRARY) + +if(COMMAND qt_create_translation) + qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES}) +else() + qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES}) +endif() diff --git a/GenericCore_en_US.ts b/GenericCore_en_US.ts new file mode 100644 index 0000000..edd0d34 --- /dev/null +++ b/GenericCore_en_US.ts @@ -0,0 +1,3 @@ + + + diff --git a/genericcore.cpp b/genericcore.cpp new file mode 100644 index 0000000..4a5e0e2 --- /dev/null +++ b/genericcore.cpp @@ -0,0 +1,3 @@ +#include "genericcore.h" + +GenericCore::GenericCore() {} diff --git a/genericcore.h b/genericcore.h new file mode 100644 index 0000000..845b0dd --- /dev/null +++ b/genericcore.h @@ -0,0 +1,10 @@ +#ifndef GENERICCORE_H +#define GENERICCORE_H + +class GenericCore +{ +public: + GenericCore(); +}; + +#endif // GENERICCORE_H