diff options
-rw-r--r-- | libs/CMakeLists.txt | 3 | ||||
-rw-r--r-- | libs/sqlite3/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/CMakeLists.txt | 1 | ||||
-rw-r--r-- | plugins/Dbx_sqlite/CMakeLists.txt | 6 |
4 files changed, 13 insertions, 1 deletions
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 4a38a39885..bdaf92d8d3 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -2,4 +2,5 @@ add_subdirectory(zlib) add_subdirectory(libjson) add_subdirectory(libsignal) add_subdirectory(freeimage) -add_subdirectory(libmdbx)
\ No newline at end of file +add_subdirectory(libmdbx) +add_subdirectory(sqlite3)
\ No newline at end of file diff --git a/libs/sqlite3/CMakeLists.txt b/libs/sqlite3/CMakeLists.txt new file mode 100644 index 0000000000..1ec989eef3 --- /dev/null +++ b/libs/sqlite3/CMakeLists.txt @@ -0,0 +1,4 @@ +file(GLOB SOURCES "src/*.h" "src/*.c") +set(TARGET sqlite3) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "_HAVE_SQLITE_CONFIG_H")
\ No newline at end of file diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 714e5ee874..a8c4b3fc2d 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,3 +1,4 @@ add_subdirectory(Clist_modern) add_subdirectory(Dbx_mdbx) +add_subdirectory(Dbx_sqlite) add_subdirectory(TopToolBar) diff --git a/plugins/Dbx_sqlite/CMakeLists.txt b/plugins/Dbx_sqlite/CMakeLists.txt new file mode 100644 index 0000000000..a4f971eef0 --- /dev/null +++ b/plugins/Dbx_sqlite/CMakeLists.txt @@ -0,0 +1,6 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc") +set(TARGET Dbx_sqlite) + +include_directories(${CMAKE_SOURCE_DIR}/libs/sqlite3/src) +include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake) +target_link_libraries(${TARGET} sqlite3)
\ No newline at end of file |