Skip to content

Commit 8b877b4

Browse files
committed
cmake: restore SQLite CMakeLists.txt for Azure
1 parent 909a451 commit 8b877b4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

cmake/SQLite/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Saleem Abdulrasool. All Rights Reserved.
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
4+
cmake_minimum_required(VERSION 3.12.3)
5+
6+
project(SQLite LANGUAGES C)
7+
8+
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
9+
10+
add_library(SQLite3
11+
sqlite3.c)
12+
if(CMAKE_SYSTEM_NAME STREQUAL Windows AND BUILD_SHARED_LIBS)
13+
target_compile_definitions(SQLite3 PRIVATE
14+
"SQLITE_API=__declspec(dllexport)")
15+
endif()
16+
17+
install(TARGETS SQLite3
18+
ARCHIVE DESTINATION lib
19+
LIBRARY DESTINATION lib
20+
RUNTIME DESTINATION bin)
21+
install(FILES sqlite3.h sqlite3ext.h
22+
DESTINATION include)
23+

0 commit comments

Comments
 (0)