summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--lib/sqlite/CMakeLists.txt14
2 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f97c60c33..b59ade49d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,7 @@ add_subdirectory(lib/cryptopp/)
add_subdirectory(lib/zlib/)
add_subdirectory(lib/lua/)
add_subdirectory(lib/tolua++/)
+add_subdirectory(lib/sqlite/)
#TODo: set -Wall -Werror -Wextra
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK}")
diff --git a/lib/sqlite/CMakeLists.txt b/lib/sqlite/CMakeLists.txt
new file mode 100644
index 000000000..8596e2d9c
--- /dev/null
+++ b/lib/sqlite/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (sqlite)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+file(GLOB SOURCE
+ "*.c"
+)
+
+add_library(sqlite ${SOURCE})
+
+target_link_libraries(sqlite dl)