21 lines
540 B
Diff
21 lines
540 B
Diff
diff --git i/CMakeLists.txt w/CMakeLists.txt
|
|
index 9d99543..11ce4a4 100644
|
|
--- i/CMakeLists.txt
|
|
+++ w/CMakeLists.txt
|
|
@@ -131,6 +131,15 @@ if(NOT SQLite3_FOUND)
|
|
endif()
|
|
endif()
|
|
|
|
+if(SQLite3_FOUND AND NOT TARGET SQLite3::SQLite3)
|
|
+ add_library(SQLite3::SQLite3 UNKNOWN IMPORTED)
|
|
+
|
|
+ set_target_properties(SQLite3::SQLite3 PROPERTIES
|
|
+ IMPORTED_LOCATION "${SQLite3_LIBRARIES}"
|
|
+ INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIRS}"
|
|
+ )
|
|
+endif()
|
|
+
|
|
# --- Configure the Library ---
|
|
|
|
# Select source files based on API version
|