We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909a451 commit 8b877b4Copy full SHA for 8b877b4
cmake/SQLite/CMakeLists.txt
@@ -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