added USE_SQLITE3 option
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 8s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 8s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
This commit is contained in:
1 parent
634245e3ad
commit
73a73976fe
18 files changed
+115
-32
No files matched your search
+12
-2
@@ -10,11 +10,21 @@ include_directories(./src/lib/ ${SQLite3_INCLUDE_DIRS})
|
||||
|
||||
FILE(GLOB_RECURSE SOURCES src/*.c)
|
||||
|
||||
find_package(SQLite3 REQUIRED)
|
||||
option(USE_SQLITE3 "Enable SQLite3 support" OFF)
|
||||
|
||||
if(USE_SQLITE3)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
pkg_check_modules(SQLITE3 REQUIRED sqlite3)
|
||||
add_definitions(-DUSE_SQLITE3)
|
||||
endif()
|
||||
|
||||
add_executable(
|
||||
auth_service
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(auth_service ssl crypto sqlite3 pthread)
|
||||
if(USE_SQLITE3)
|
||||
target_link_libraries(auth_service ssl crypto sqlite3 pthread)
|
||||
else()
|
||||
target_link_libraries(auth_service ssl crypto pthread)
|
||||
endif()
|
||||
Reference in new issue
Block a user