summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-09 20:38:25 +0100
committerMattes D <github@xoft.cz>2015-01-09 20:38:25 +0100
commit52d307e3b01b733e925d51d0367995813bb283b2 (patch)
tree74ee5a482cf27fb7170fbdad4f06cb6b11a0dc7f /CMakeLists.txt
parentFixed Linux compilation. (diff)
downloadcuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar.gz
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar.bz2
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar.lz
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar.xz
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.tar.zst
cuberite-52d307e3b01b733e925d51d0367995813bb283b2.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d4e9d41e8..493cecdb3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,6 +95,14 @@ set(SQLITECPP_BUILD_EXAMPLES OFF CACHE BOOL "Build examples."
set(SQLITECPP_BUILD_TESTS OFF CACHE BOOL "Build and run tests." FORCE)
set(SQLITECPP_INTERNAL_SQLITE OFF CACHE BOOL "Add the internal SQLite3 source to the project." FORCE)
+# Check that the libraries are present:
+if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/SQLiteCpp/CMakeLists.txt)
+ message(FATAL_ERROR "SQLiteCpp is missing in folder lib/SQLiteCpp. Have you initialized the submodules / downloaded the extra libraries?")
+endif()
+if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/polarssl/CMakeLists.txt)
+ message(FATAL_ERROR "PolarSSL is missing in folder lib/polarssl. Have you initialized the submodules / downloaded the extra libraries?")
+endif()
+
# Include all the libraries:
add_subdirectory(lib/jsoncpp/)
add_subdirectory(lib/zlib/)