DynuIPRefresher/CMakeLists.txt

39 lines
740 B
CMake
Raw Normal View History

2019-05-05 16:50:10 +00:00
cmake_minimum_required(VERSION 3.7)
project(iprefresher VERSION 1.0.1 DESCRIPTION "mylib description")
2019-05-01 09:14:52 +00:00
set(CMAKE_CXX_STANDARD 17)
2019-05-01 09:14:52 +00:00
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIR})
add_library(api
src/api/API.h
src/api/API.cpp
2019-05-08 17:28:16 +00:00
src/api/Hashmap.h
src/api/TelegramAPI.cpp
src/api/TelegramAPI.h
src/api/DynuAPI.cpp
src/api/DynuAPI.h
src/api/IPAPI.cpp
src/api/IPAPI.h
)
add_library(logger
src/Logger.cpp
src/Logger.h
)
set(SOURCE
src/main.cpp
)
2019-05-05 13:38:48 +00:00
add_executable(iprefresher ${SOURCE})
target_link_libraries(iprefresher api logger ${CURL_LIBRARIES} )
2019-05-01 09:14:52 +00:00
install (TARGETS iprefresher DESTINATION bin)