- A small cash point program for children’s stuff markets. German language only.
+ A small cash point program for children's stuff markets. German language only.
diff --git a/manual/Benutzerhandbuch.odt b/manual/Benutzerhandbuch.odt
index 189890f..c2defc2 100644
Binary files a/manual/Benutzerhandbuch.odt and b/manual/Benutzerhandbuch.odt differ
diff --git a/manual/Benutzerhandbuch.pdf b/manual/Benutzerhandbuch.pdf
index 5a27042..793f996 100644
Binary files a/manual/Benutzerhandbuch.pdf and b/manual/Benutzerhandbuch.pdf differ
diff --git a/meson.build b/meson.build
deleted file mode 100644
index a0f8b23..0000000
--- a/meson.build
+++ /dev/null
@@ -1,33 +0,0 @@
-project('kima2', 'cpp', default_options : ['cpp_std=c++20'], version : '1.6.1')
-
-conf_data = configuration_data()
-conf_data.set('PROJECT_VERSION', '"' + meson.project_version() + '"')
-configure_file(output : 'config.h',
- configuration : conf_data)
-configuration_inc = include_directories('.')
-
-#csv = cmake.subproject('csv-parser')
-#csv_lib = csv.dependency('csv')
-
-nlohmann_lib = dependency('nlohmann_json', version : '>=3.5.0', required : false)
-
-if not nlohmann_lib.found()
- nlohmann_inc = include_directories('subprojects/nlohmann_json/single_include')
- nlohmann_lib = declare_dependency(include_directories : nlohmann_inc)
-endif
-
-csv_inc = include_directories('subprojects/csv-parser/single_include')
-csv_dep = declare_dependency(include_directories : csv_inc)
-
-singleapp_proj = subproject('singleapplication')
-singleapp_lib = singleapp_proj.get_variable('singleapp_lib')
-singleapp_dep = singleapp_proj.get_variable('singleapp_dep')
-
-subdir('src')
-
-if build_machine.system() == 'linux'
- install_data('misc/kima2.svg', install_dir : get_option('datadir') / 'icons/hicolor/scalable/apps')
- install_data('misc/kima2.desktop', install_dir : get_option('datadir') / 'applications')
- install_data('manual/Benutzerhandbuch.pdf', install_dir : get_option('datadir') / 'kima2')
-endif
-
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 40836cf..681cf5c 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -1,13 +1,14 @@
set(Boost_USE_STATIC_LIBS ON)
-find_package(Boost 1.62 REQUIRED)
+find_package(Boost 1.78 REQUIRED)
find_package(SQLite3 REQUIRED)
-# Because csv-parser needs threads:
+FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
+FetchContent_MakeAvailable(json)
-find_package(fmt)
+add_library(core STATIC)
-set(CORE_SOURCES
+target_sources(core PRIVATE
database.cpp
entity.cpp
entityint.cpp
@@ -21,14 +22,11 @@ set(CORE_SOURCES
utils.cpp
)
-
-add_library(core STATIC ${CORE_SOURCES})
-#target_include_directories(core PRIVATE ${PROJECT_SOURCE_DIR}/subprojects/csv-parser/single_include)
if (WIN32)
- target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json fmt::fmt)
+ target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json)
target_link_libraries(core PRIVATE bcrypt)
else()
- target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json fmt::fmt)
+ target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json)
endif()
target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
diff --git a/src/core/database.cpp b/src/core/database.cpp
index 863bc5d..d6b7384 100644
--- a/src/core/database.cpp
+++ b/src/core/database.cpp
@@ -2,7 +2,7 @@
#include