mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-21 15:50:50 +00:00
Link to system's sqlite if user doesn't want to use the one from SQLiteCpp.
This commit is contained in:
parent
5ecaecda49
commit
a6b71f0bd6
2 changed files with 104 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
project(${bare_name}-backend-sqlite CXX)
|
||||
|
||||
if (SQLITECPP_INTERNAL_SQLITE)
|
||||
set(sqlite3_lib "sqlite3")
|
||||
else()
|
||||
find_package(sqlite3 REQUIRED)
|
||||
set(sqlite3_lib "SQLite3::SQLite3")
|
||||
endif()
|
||||
|
||||
add_library(${PROJECT_NAME} SHARED
|
||||
backend_sqlite.cpp
|
||||
)
|
||||
|
@ -7,6 +14,7 @@ add_library(${PROJECT_NAME} SHARED
|
|||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE ${bare_name}-inc
|
||||
PRIVATE SQLiteCpp
|
||||
PRIVATE ${sqlite3_lib}
|
||||
)
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue