summaryrefslogtreecommitdiffstats
path: root/keximdb/src
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-01-25 12:57:56 +0100
committergregory guy <g-gregory@gmx.fr>2019-01-25 12:57:56 +0100
commit6e04b5e8a829d2dbe1cde227496220473393309c (patch)
treed8109545dd196206e923a8929b7e4da9ea5f6d5c /keximdb/src
parent3dbaa5b1cef69981d013d471f0765eb73f552552 (diff)
downloadkeximdb-6e04b5e8a829d2dbe1cde227496220473393309c.tar.gz
keximdb-6e04b5e8a829d2dbe1cde227496220473393309c.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'keximdb/src')
-rw-r--r--keximdb/src/CMakeLists.txt2
-rw-r--r--keximdb/src/keximdb/CMakeLists.txt40
-rw-r--r--keximdb/src/mdbtools/CMakeLists.txt3
-rw-r--r--keximdb/src/mdbtools/libmdb/CMakeLists.txt38
4 files changed, 83 insertions, 0 deletions
diff --git a/keximdb/src/CMakeLists.txt b/keximdb/src/CMakeLists.txt
new file mode 100644
index 0000000..841a58d
--- /dev/null
+++ b/keximdb/src/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( mdbtools )
+add_subdirectory( keximdb )
diff --git a/keximdb/src/keximdb/CMakeLists.txt b/keximdb/src/keximdb/CMakeLists.txt
new file mode 100644
index 0000000..b0b47bf
--- /dev/null
+++ b/keximdb/src/keximdb/CMakeLists.txt
@@ -0,0 +1,40 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/keximdb/src/mdbtools/include
+ ${GLIB2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+add_definitions( -DMDB_NO_BACKENDS=1 -DMDB_NO_STATS=1 )
+
+
+##### keximigrate_mdb (kpart)
+
+tde_add_kpart( keximigrate_mdb AUTOMOC
+
+ SOURCES
+ mdbmigrate.cpp
+ LINK
+ tdecore-shared
+ mdb-static
+ keximigrate kexiutils kexidb
+ ${GLIB2_LIBRARIES}
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES keximigrate_mdb.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/keximdb/src/mdbtools/CMakeLists.txt b/keximdb/src/mdbtools/CMakeLists.txt
new file mode 100644
index 0000000..864510d
--- /dev/null
+++ b/keximdb/src/mdbtools/CMakeLists.txt
@@ -0,0 +1,3 @@
+# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
+
+add_subdirectory( libmdb )
diff --git a/keximdb/src/mdbtools/libmdb/CMakeLists.txt b/keximdb/src/mdbtools/libmdb/CMakeLists.txt
new file mode 100644
index 0000000..b3328ca
--- /dev/null
+++ b/keximdb/src/mdbtools/libmdb/CMakeLists.txt
@@ -0,0 +1,38 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/keximdb/src/mdbtools/include
+ ${GLIB2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+add_definitions( -DMDB_NO_BACKENDS=1 -DMDB_NO_STATS=1 )
+
+
+##### mdb (static)
+
+tde_add_library( mdb STATIC_PIC AUTOMOC
+
+ SOURCES
+ catalog.c
+ mem.c
+ file.c
+ table.c
+ data.c
+ dump.c
+ money.c
+ index.c
+ write.c
+ map.c
+ options.c
+ iconv.c
+ sargs.c
+ like.c
+)