speed-dreams-code/packaging/3rdParty-devel/patches/sqlite3-CMakeLists.txt

53 lines
1.7 KiB
Text
Raw Normal View History

#
#==============================================================================
#
# 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)