2022-09-10 20:19:41 -04:00
|
|
|
cmake_minimum_required(VERSION 3.23)
|
2022-09-11 13:21:24 -04:00
|
|
|
project(dropout-dl)
|
2022-09-10 20:19:41 -04:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2022-09-28 20:56:10 -04:00
|
|
|
add_executable(dropout-dl src/episode.cpp src/main.cpp)
|
2022-09-10 20:19:41 -04:00
|
|
|
|
2022-09-28 20:02:10 -04:00
|
|
|
IF (EXISTS "firefox_profile")
|
|
|
|
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()
|
|
|
|
|