speed-dreams-code/packaging/3rdParty-devel/patches/sqlite3-CMakeLists.txt
beaglejoe e69520a2a5 Updated sqlite3 to 3.30.1
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6795 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 93aa90d12b1f2670a9b09795149e2b2594b75f64
Former-commit-id: 2fb2e53aa7ee76eba861d7dba4f11cbddddfdbd0
2019-12-13 05:49:05 +00:00

53 lines
No EOL
1.7 KiB
Text

#
#==============================================================================
#
# file : CMakeLists.txt
# created : Dec 11 2019
# copyright : (C) 2019 Joe Thompson
# email : beaglejoe@users.sourceforge.net
# version : $Id$
#
#==============================================================================
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#==============================================================================
#
cmake_minimum_required(VERSION 2.8)
project(sqlite3 C)
set(VERSION "3.30.1")
#include_directories(include)
set(sqlite_SOURCES sqlite3.c)
set(sqlite_HEADERS sqlite3.h sqlite3ext.h)
#add_compile_definitions(SQLITE_API= '__declspec(dllexport)')
#add_library(sqlite3 SHARED ${sqlite_SOURCES} ${sqlite_HEADERS})
add_library(sqlite3 STATIC ${sqlite_SOURCES} ${sqlite_HEADERS})
install(FILES ${sqlite_HEADERS}
DESTINATION include)
install(TARGETS sqlite3
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)