Basic infrastructure for file transfers
[quassel.git] / src / core / CMakeLists.txt
1 # Builds the core module
2
3 setup_qt_variables(Network Sql Script)
4
5 set(SOURCES
6     abstractsqlstorage.cpp
7     core.cpp
8     corealiasmanager.cpp
9     coreapplication.cpp
10     coreauthhandler.cpp
11     corebacklogmanager.cpp
12     corebasichandler.cpp
13     corebuffersyncer.cpp
14     corebufferviewconfig.cpp
15     corebufferviewmanager.cpp
16     corecoreinfo.cpp
17     coreidentity.cpp
18     coreignorelistmanager.cpp
19     coreircchannel.cpp
20     coreirclisthelper.cpp
21     coreircuser.cpp
22     corenetwork.cpp
23     corenetworkconfig.cpp
24     coresession.cpp
25     coresessioneventprocessor.cpp
26     coresettings.cpp
27     coretransfermanager.cpp
28     coreuserinputhandler.cpp
29     coreusersettings.cpp
30     ctcpparser.cpp
31     eventstringifier.cpp
32     ircparser.cpp
33     netsplit.cpp
34     oidentdconfiggenerator.cpp
35     postgresqlstorage.cpp
36     sessionthread.cpp
37     sqlitestorage.cpp
38     storage.cpp)
39
40 set(MOC_HDRS
41     abstractsqlstorage.h
42     core.h
43     corealiasmanager.h
44     coreapplication.h
45     coreauthhandler.h
46     corebacklogmanager.h
47     corebasichandler.h
48     corebuffersyncer.h
49     corebufferviewconfig.h
50     corebufferviewmanager.h
51     corecoreinfo.h
52     coreeventmanager.h
53     coreidentity.h
54     coreignorelistmanager.h
55     coreircchannel.h
56     coreirclisthelper.h
57     coreircuser.h
58     corenetwork.h
59     corenetworkconfig.h
60     coresession.h
61     coresessioneventprocessor.h
62     coretransfermanager.h
63     coreuserinputhandler.h
64     ctcpparser.h
65     eventstringifier.h
66     ircparser.h
67     netsplit.h
68     oidentdconfiggenerator.h
69     postgresqlstorage.h
70     sqlitestorage.h
71     storage.h
72     sessionthread.h)
73
74 set(HEADERS
75     coresettings.h
76     coreusersettings.h)
77
78 if(HAVE_SSL)
79   set(SOURCES ${SOURCES} sslserver.cpp)
80   set(MOC_HDRS ${MOC_HDRS} sslserver.h)
81   include_directories(${OPENSSL_INCLUDE_DIR})
82 endif(HAVE_SSL)
83
84 if(HAVE_QCA2)
85   set(SOURCES ${SOURCES} cipher.cpp)
86   set(HEADERS ${HEADERS} cipher.h)
87   include_directories(${QCA2_INCLUDE_DIR})
88 endif(HAVE_QCA2)
89
90 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
91
92 if(NOT WITH_QT5)
93   qt4_wrap_cpp(MOC ${MOC_HDRS})
94 endif(NOT WITH_QT5)
95
96 set(CORE_RCS ${CORE_RCS} core/sql.qrc PARENT_SCOPE)
97
98 add_library(mod_core STATIC ${SOURCES} ${MOC} ${HEADERS})
99 add_dependencies(mod_core mod_common)
100 set_target_properties(mod_core PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
101
102 if(HAVE_QCA2)
103   target_link_libraries(mod_core ${QCA2_LIBRARIES})
104 endif(HAVE_QCA2)