Compare commits
2 Commits
a6936c2f30
...
9d95c98424
Author | SHA1 | Date | |
---|---|---|---|
9d95c98424 | |||
607f26e4c1 |
@ -1,6 +1,27 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
project(mmcs-quotes-bridge LANGUAGES CXX)
|
project(mmcs-quotes-bridge LANGUAGES CXX)
|
||||||
|
|
||||||
|
option(BUILD_SHARED_LIBS "Build shared libraries by default" NO)
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(CURL_DISABLE_AWS ON)
|
||||||
|
set(CURL_DISABLE_DICT ON)
|
||||||
|
set(CURL_DISABLE_FILE ON)
|
||||||
|
set(CURL_DISABLE_FTP ON)
|
||||||
|
set(CURL_DISABLE_GOPHER ON)
|
||||||
|
set(CURL_DISABLE_IMAP ON)
|
||||||
|
set(CURL_DISABLE_LDAP ON)
|
||||||
|
set(CURL_DISABLE_LDAPS ON)
|
||||||
|
set(CURL_DISABLE_MQTT ON)
|
||||||
|
set(CURL_DISABLE_NTLM ON)
|
||||||
|
set(CURL_DISABLE_POP3 ON)
|
||||||
|
set(CURL_DISABLE_RTSP ON)
|
||||||
|
set(CURL_DISABLE_SMB ON)
|
||||||
|
set(CURL_DISABLE_TFTP ON)
|
||||||
|
set(CURL_DISABLE_WEBSOCKETS ON)
|
||||||
|
|
||||||
add_subdirectory(curl)
|
add_subdirectory(curl)
|
||||||
add_subdirectory(json)
|
add_subdirectory(json)
|
||||||
add_subdirectory(libuv)
|
add_subdirectory(libuv)
|
||||||
@ -11,4 +32,4 @@ add_executable(${PROJECT_NAME} main.cpp config.cpp http.cpp manager.cpp posts.cp
|
|||||||
|
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE -std=c++2a)
|
target_compile_options(${PROJECT_NAME} PRIVATE -std=c++2a)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE CURL::libcurl nlohmann_json::nlohmann_json uv spdlog::spdlog Td::TdStatic $<$<BOOL:${MINGW}>:ws2_32>)
|
target_link_libraries(${PROJECT_NAME} PRIVATE CURL::libcurl nlohmann_json::nlohmann_json uv_a spdlog::spdlog Td::TdStatic $<$<BOOL:${MINGW}>:ws2_32>)
|
11
bridge_config.example.json
Normal file
11
bridge_config.example.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"vk_service_key": "service_key_service_key_service_key_service_key_service_key_service_key",
|
||||||
|
|
||||||
|
"tg_api_id": 1234567,
|
||||||
|
"tg_api_hash": "53a513d108f2c7d9edc67dadd3ce4185",
|
||||||
|
"tg_phone_number": "+79528125252",
|
||||||
|
|
||||||
|
"vk_sources": [{"id": "source1"}, {"id":123451234, "link": "source2"}],
|
||||||
|
"tg_sources": [{"id": -1002282282280, "link": "tgsource"}],
|
||||||
|
"tg_destination_id": -1005252525252
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user