Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « twitter « backends - github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14f71e3c387d5eb0aed00f8cf8ddc454b838c59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include_directories(${libtransport_SOURCE_DIR}/backends/twitter/libtwitcurl)

file(GLOB SRC *.cpp libtwitcurl/*.cpp Requests/*.cpp)

add_executable(spectrum2_twitter_backend ${SRC})

find_package(CURL)

if(CURL_FOUND)
	message(STATUS "Using curl ${CURL_VERSION_STRING}: ${CURL_INCLUDE_DIRS} ${CURL_LIBRARIES}")
	target_link_libraries(spectrum2_twitter_backend transport-plugin JsonCpp::JsonCpp ${CURL_LIBRARIES} ${Boost_LIBRARIES} ${SWIFTEN_LIBRARY} ${LOG4CXX_LIBRARIES})
else()
	message(FATAL_ERROR "curl not found")
endif()

install(TARGETS spectrum2_twitter_backend RUNTIME DESTINATION bin)