2019-05-05 16:50:10 +00:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
2019-05-01 09:14:52 +00:00
|
|
|
project(iprefresher)
|
|
|
|
|
2019-05-05 16:50:10 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
2019-05-01 09:14:52 +00:00
|
|
|
|
|
|
|
find_package(CURL REQUIRED)
|
|
|
|
include_directories(${CURL_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
2019-05-08 17:19:42 +00:00
|
|
|
set(SOURCE
|
|
|
|
src/main.cpp
|
|
|
|
|
|
|
|
src/api/API.h
|
|
|
|
src/api/API.cpp
|
|
|
|
|
|
|
|
src/Hashmap.h
|
|
|
|
|
|
|
|
src/Logger.cpp
|
|
|
|
src/Logger.h
|
|
|
|
|
|
|
|
src/api/TelegramAPI.cpp
|
|
|
|
src/api/TelegramAPI.h
|
|
|
|
)
|
2019-05-05 13:38:48 +00:00
|
|
|
|
|
|
|
add_executable(iprefresher ${SOURCE})
|
2019-05-01 09:14:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-05 16:50:10 +00:00
|
|
|
target_link_libraries(iprefresher ${CURL_LIBRARIES})
|