-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
81 lines (66 loc) · 1.33 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cmake_minimum_required(VERSION 2.8.11)
project(o2)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(QT_USE_QTNETWORK true)
set(QT_USE_QTSCRIPT true)
find_package(Qt4 REQUIRED)
#find_package(QJson REQUIRED)
include( ${QT_USE_FILE} )
set( o2_SRCS
o2.cpp
o2reply.cpp
o2replyserver.cpp
o2requestor.cpp
simplecrypt.cpp
o2settingsstore.cpp
o2abstractstore.h
)
if(WITH_TWITTER OR WITH_DROPBOX OR WITH_FLICKR)
set( o2_SRCS
${o2_SRCS}
o1.cpp
o1requestor.cpp
)
endif(WITH_TWITTER OR WITH_DROPBOX OR WITH_FLICKR)
if(WITH_TWITTER)
set( o2_SRCS
${o2_SRCS}
o1twitter.h
oxtwitter.cpp
)
endif(WITH_TWITTER)
if(WITH_DROPBOX)
set( o2_SRCS
${o2_SRCS}
o1dropbox.h
)
endif(WITH_DROPBOX)
if(WITH_GOOGLE)
set( o2_SRCS
${o2_SRCS}
o2gft.cpp
)
endif(WITH_GOOGLE)
if(WITH_FACEBOOK)
set( o2_SRCS
${o2_SRCS}
o2facebook.cpp
)
endif(WITH_FACEBOOK)
if(WITH_SKYDRIVE)
set( o2_SRCS
${o2_SRCS}
o2skydrive.cpp
)
endif(WITH_SKYDRIVE)
if(WITH_FLICKR)
set( o2_SRCS
${o2_SRCS}
o1flickr.h
)
endif(WITH_FLICKR)
add_definitions(${QT4_DEFINITIONS})
add_library( o2 ${o2_SRCS} )
target_link_libraries( o2 ${QT_LIBRARIES} )