-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial new raw sql with sqlite_modern_cpp
- Loading branch information
Showing
56 changed files
with
1,727 additions
and
267,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
project(spotify-qt-lib-third-party) | ||
|
||
# SQLiteCpp | ||
add_subdirectory(SQLiteCpp) | ||
# Set as library | ||
add_library(${PROJECT_NAME} STATIC) | ||
|
||
# Link | ||
add_library(spotify-qt-lib-third-party STATIC) | ||
target_link_libraries(spotify-qt-lib-third-party | ||
SQLiteCpp | ||
sqlite3) | ||
# SQLite cache support | ||
if (NOT DEFINED USE_DB_CACHE) | ||
set(USE_DB_CACHE ON) | ||
endif () | ||
|
||
# TODO: On error, use bundled SQLite instead | ||
if (USE_DB_CACHE) | ||
find_package(PkgConfig QUIET) | ||
if (PkgConfig_FOUND) | ||
pkg_check_modules(SQLITE sqlite3 QUIET) | ||
if (SQLITE_FOUND) | ||
target_link_directories(${PROJECT_NAME} PRIVATE "${SQLITE_LIBRARY_DIRS}") | ||
target_include_directories(${PROJECT_NAME} PRIVATE "${SQLITE_INCLUDE_DIRS}") | ||
target_link_libraries(${PROJECT_NAME} PRIVATE "${SQLITE_LIBRARIES}") | ||
message(STATUS "Using SQLite ${SQLITE_VERSION} (system)") | ||
else () | ||
message(WARNING "SQLite error: sqlite3 not found") | ||
endif () | ||
else () | ||
message(WARNING "SQLite error: pkg-config not found") | ||
endif () | ||
endif () |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.