2012-04-25 20:13:17 +04:00
|
|
|
project(grive)
|
|
|
|
|
2012-04-26 08:03:30 +04:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
include(FindOpenSSL)
|
|
|
|
|
2012-04-27 11:41:46 +04:00
|
|
|
include_directories(
|
|
|
|
${grive_SOURCE_DIR}/src
|
|
|
|
)
|
2012-04-27 06:49:33 +04:00
|
|
|
|
2012-04-25 20:13:17 +04:00
|
|
|
add_executable( grive
|
|
|
|
src/main.cc
|
2012-04-27 06:49:33 +04:00
|
|
|
src/drive/Collection.cc
|
|
|
|
src/drive/Drive.cc
|
|
|
|
src/protocol/Download.cc
|
2012-04-26 08:21:40 +04:00
|
|
|
src/protocol/HTTP.cc
|
|
|
|
src/protocol/Json.cc
|
2012-04-27 06:49:33 +04:00
|
|
|
src/protocol/OAuth2.cc
|
2012-04-28 20:01:45 +04:00
|
|
|
src/util/Crypt.cc
|
2012-04-27 21:52:02 +04:00
|
|
|
src/util/DateTime.cc
|
2012-04-27 06:49:33 +04:00
|
|
|
src/util/OS.cc
|
|
|
|
)
|
2012-04-25 20:13:17 +04:00
|
|
|
|
|
|
|
target_link_libraries( grive
|
|
|
|
curl
|
2012-04-26 08:03:30 +04:00
|
|
|
json
|
2012-04-27 11:41:46 +04:00
|
|
|
${OPENSSL_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable( unittest
|
|
|
|
test/UnitTest.cc
|
|
|
|
src/util/DateTime.cc
|
|
|
|
test/util/DateTimeTest.cc
|
2012-04-28 14:33:08 +04:00
|
|
|
test/util/FunctionTest.cc
|
2012-04-27 11:41:46 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( unittest
|
|
|
|
cppunit
|
|
|
|
)
|