CMake: Updated CMake to Check for sqlite and libgcrypt
This commit is contained in:
parent
cd72083b69
commit
1926485b1a
|
@ -5,13 +5,18 @@ set(CMAKE_CXX_STANDARD 17)
|
|||
|
||||
add_executable(dropout-dl src/episode.cpp src/season.cpp src/series.cpp src/main.cpp)
|
||||
|
||||
IF (EXISTS "firefox_profile")
|
||||
target_link_libraries(dropout-dl curl)
|
||||
|
||||
find_library(SQLITE3_FOUND sqlite3)
|
||||
find_library(GCRYPT_FOUND gcrypt)
|
||||
IF (SQLITE3_FOUND)
|
||||
message(STATUS "sqlite3 found")
|
||||
target_link_libraries(dropout-dl curl sqlite3)
|
||||
add_compile_definitions(DROPOUT_DL_SQLITE)
|
||||
ELSEIF(EXISTS "chrome_profile")
|
||||
target_link_libraries(dropout-dl curl sqlite3 gcrypt)
|
||||
add_compile_definitions(DROPOUT_DL_SQLITE DROPOUT_DL_GCRYPT)
|
||||
ELSE()
|
||||
target_link_libraries(dropout-dl curl)
|
||||
ENDIF()
|
||||
IF(GCRYPT_FOUND)
|
||||
message(STATUS "libgcrypt found")
|
||||
target_link_libraries(dropout-dl gcrypt)
|
||||
add_compile_definitions(DROPOUT_DL_GCRYPT)
|
||||
ENDIF()
|
||||
|
||||
|
|
Loading…
Reference in New Issue