-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
141 lines (121 loc) · 3.28 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
cmake_minimum_required(VERSION 2.8)
## we have some extra modules here
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
## thats our project
project(pimp)
## we need all that Qt stuff
find_package(Qt4 COMPONENTS QtCore QtGui QtXml QtWebkit REQUIRED)
set(QT_USE_QTSQL TRUE)
set(QT_USE_QTWEBKIT TRUE)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(${QT_USE_FILE})
set(LIBS ${LIBS} ${QT_LIBRARIES})
## we need a boost
#find_package( Boost 1.48 COMPONENTS regex REQUIRED )
#include_directories(${Boost_INCLUDE_DIRS})
#set(LIBS ${LIBS} ${Boost_LIBRARIES})
## this will do the imap,pop,smtp stuff
find_package( VMime REQUIRED )
include_directories(${VMime_INCLUDE_DIRS})
set(LIBS ${LIBS} ${VMime_LIBRARIES})
## this will do the rss stuff
find_package( mRss REQUIRED )
include_directories(${mRss_INCLUDE_DIRS})
set(LIBS ${LIBS} ${mRss_LIBRARIES})
## this will do cryptographie (from glibc)
find_package( OpenSSL REQUIRED )
include_directories(${OPENSSL_INCLUDE_DIR})
set(LIBS ${LIBS} ${OPENSSL_LIBRARIES})
## DEBUG
GET_DIRECTORY_PROPERTY(INCLUDES INCLUDE_DIRECTORIES)
MESSAGE( "INCLUDES: ${INCLUDES}" )
MESSAGE( "LIBS: ${LIBS}" )
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../sweet.hpp)
##############################################################################
## our headers
set(pimp_HEADERS
includes/aes256.hpp
includes/calendarmainwidget.hpp
includes/contactsmainwidget.hpp
includes/debug.hpp
includes/exception.hpp
includes/highlighter.hpp
includes/instantmainwidget.hpp
includes/ircmainwidget.hpp
includes/loggingmainwidget.hpp
includes/mailmainwidget.hpp
includes/main.hpp
includes/mainwindow.hpp
includes/newfeeddialog.hpp
includes/newmailwindow.hpp
includes/rssmainwidget.hpp
includes/settings.hpp
includes/settingsdialog.hpp
includes/summarymainwidget.hpp
includes/todomainwidget.hpp
includes/configmainwidget.hpp
includes/newmailaccount.hpp
)
## well and the sources
set(pimp_SOURCES
src/aes256.cpp
src/calendarmainwidget.cpp
src/contactsmainwidget.cpp
src/exception.cpp
src/highlighter.cpp
src/instantmainwidget.cpp
src/ircmainwidget.cpp
src/loggingmainwidget.cpp
src/mailmainwidget.cpp
src/main.cpp
src/mainwindow.cpp
src/newfeeddialog.cpp
src/newmailwindow.cpp
src/rssmainwidget.cpp
src/settings.cpp
src/settingsdialog.cpp
src/summarymainwidget.cpp
src/todomainwidget.cpp
src/configmainwidget.cpp
src/newmailaccount.cpp
)
## some gui stuff
set(pimp_UIS
ui/calendarmainwidget.ui
ui/instantmainwidget.ui
ui/inserthtmldialog.ui
ui/ircmainwidget.ui
ui/mailmainwidget.ui
ui/mainwindow.ui
ui/summarymainwidget.ui
ui/todomainwidget.ui
ui/loggingmainwidget.ui
ui/contactsmainwidget.ui
ui/rssmainwidget.ui
ui/newfeeddialog.ui
ui/newmailwindow.ui
ui/config.ui
ui/configmainwidget.ui
ui/mailaccount.ui
)
## people love pictures
set(pimp_RESOURCES
resources/icons.qrc
resources/htmleditor.qrc
)
## we love c++0x and a chatty compiler that comments on our code
set(CMAKE_CXX_FLAGS "-Wall -Werror -ggdb --std=c++0x -std=gnu++0x")
QT4_WRAP_UI(pimp_UIS_H ${pimp_UIS})
QT4_ADD_RESOURCES(pimp_RESOURCES_CPP ${pimp_RESOURCES})
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/includes
)
add_executable(pimp
${pimp_SOURCES}
${pimp_UIS_H}
${pimp_RESOURCES_CPP}
${pimp_HEADERS}
)
target_link_libraries(pimp ${LIBS} crypto)