mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Added a "sqlite3/CMakeLists.txt" file defining the SQLite3 static library for easier Windows build.
This commit is contained in:
parent
d75c7a9449
commit
2b5d66eb25
@ -9,9 +9,9 @@ cmake_minimum_required (VERSION 2.6)
|
||||
project (SQLiteCpp)
|
||||
|
||||
if (MSVC)
|
||||
# build the SQLite3 C library for windows build (for ease of use)
|
||||
# build the SQLite3 C library for Windows (for ease of use)
|
||||
add_subdirectory (sqlite3)
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/sqlite3")
|
||||
add_library (sqlite3 sqlite3/sqlite3.c sqlite3/sqlite3.h)
|
||||
# disable Visual Studio warnings for fopen() used in the example
|
||||
add_definitions (/D_CRT_SECURE_NO_WARNINGS)
|
||||
elseif (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
@ -20,7 +20,7 @@ elseif (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
endif ()
|
||||
|
||||
################################################################################
|
||||
# add the subdirectory containing the CMakeLists.txt of the library
|
||||
# add the subdirectory containing the CMakeLists.txt of the wrapper library
|
||||
add_subdirectory (src)
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/src")
|
||||
################################################################################
|
||||
|
12
sqlite3/CMakeLists.txt
Normal file
12
sqlite3/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
# CMake file for compiling the sqlite3 static library under Windows (for ease of use)
|
||||
#
|
||||
# Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||
#
|
||||
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
||||
# or copy at http://opensource.org/licenses/MIT)
|
||||
|
||||
# add sources of the "sqlite3" static library
|
||||
add_library (sqlite3
|
||||
sqlite3.c
|
||||
sqlite3.h
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user