diff --git a/CMakeLists.txt b/CMakeLists.txt index 5908759..02413b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/readme.md b/readme.md index f5c68d0..5054828 100644 --- a/readme.md +++ b/readme.md @@ -19,7 +19,7 @@ sudo xbps-install -S libcurl sqlite-devel #### Debian ``` -sudo apt install libcurl sqlite-devel +sudo apt install libcurl4-gnutls-dev sqlite-devel ``` ## cookies