diff options
Diffstat (limited to 'tools/cmake/modules/FindSDLSqlite3.cmake')
-rw-r--r-- | tools/cmake/modules/FindSDLSqlite3.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/cmake/modules/FindSDLSqlite3.cmake b/tools/cmake/modules/FindSDLSqlite3.cmake new file mode 100644 index 0000000000..1338ef297f --- /dev/null +++ b/tools/cmake/modules/FindSDLSqlite3.cmake @@ -0,0 +1,15 @@ +# - Try to find Sqlite3 +# +# SQLITE3_INCLUDE_DIRECTORY - the Sqlite3 include directory +# SQLITE3_LIBRARIES - the Sqlite3 libraries + +get_os(OS) +if(${OS} STREQUAL "posix") + find_package(Sqlite3 REQUIRED) +elseif(${OS} STREQUAL "win") + get_sdk(SDK) + if(NOT SDK OR NOT ${SDK} STREQUAL "qt") + set(SQLITE3_INCLUDE_DIRECTORY $ENV{SDL_SQLITE_DIR}) + set(SQLITE3_LIBRARIES $ENV{SDL_SQLITE_DIR}/sqlite3.lib) + endif() +endif() |